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

Fix Vorbis Mode Parsing #27

Merged
merged 5 commits into from
Aug 7, 2023
Merged

Fix Vorbis Mode Parsing #27

merged 5 commits into from
Aug 7, 2023

Conversation

eshaz
Copy link
Owner

@eshaz eshaz commented Aug 7, 2023

Fixes

  • Allow for Vorbis mode count miss-match. See trouble with some oggs wasm-audio-decoders#86
  • Return 0 samples on first Vorbis frame per specification.

    Data is not returned from the first frame; it must be used to ’prime’ the decode engine. The encoder accounts for this priming when calculating PCM offsets; after the first frame, the proper PCM output offset is ’0’ (as no data has been returned yet). [1]

@eshaz eshaz merged commit 3ad0384 into master Aug 7, 2023
@eshaz eshaz deleted the fix-vorbis-modes branch August 7, 2023 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant