Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 64-bit integer value for sample offsets #1331

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Wohlstand
Copy link

@Wohlstand Wohlstand commented May 23, 2022

Fixes #1329

This PR also includes code for #1295 (to don't re-do the same work another time. If merge this first, please CLOSE THE #1295)

P.S. Better squish this PR when merging.

Added the `stb_vorbis_get_playback_sample_offset()` call that reports the sample-accurate position which is required for several operations such as loop range processing.
This resolves problem when playing longer OGG files (longer than 3-5 hours)
stb_vorbis.c Outdated Show resolved Hide resolved
stb_vorbis.c Outdated Show resolved Hide resolved
stb_vorbis.c Outdated Show resolved Hide resolved
stb_vorbis.c Outdated Show resolved Hide resolved
stb_vorbis.c Outdated Show resolved Hide resolved
stb_vorbis.c Outdated Show resolved Hide resolved
stb_vorbis.c Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stb_vorbis: Replace plain int with int64_t at offset/length related values
5 participants