stb icon indicating copy to clipboard operation
stb copied to clipboard

[stb-vorbis] Some multi-channel OGG Vorbis files gets wrongly decoded

Open Wohlstand opened this issue 1 year ago • 0 comments

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.ogg or test2.ogg via 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.ogg file).

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): Снимок экрана от 2024-01-07 05-23-28

Wohlstand avatar Jan 07 '24 02:01 Wohlstand