stb
stb copied to clipboard
[stb-vorbis] Some multi-channel OGG Vorbis files gets wrongly decoded
Describe the bug
I do have two OGG Vorbis files: one was a result of the VGMStream, and second I exported and re-encoded via the Audacity. Both files lead a very dirty output instead of the music. Both files do work just fine via the mainsteam libvorbis and via the Tremor (libvorbisidec).
There are demo files: test-files.zip
To Reproduce Steps to reproduce the behavior:
- Open
test1.oggortest2.oggvia stb-vorbis. - Run the decode as Float32 with the same number of channels as file has (both files have 6 channels inside).
- Final output will be a junk (can be heard in the
test-actually.oggfile).
Expected behavior
It should result the sounding similar to the test-how-it-should.ogg file (output has been converted into the stereo via SDL2's AudioStream functionality).
Screenshots
How the content of the file looks visually (Audacity):