Closed ghost closed 3 years ago
After some testing, I have determined that the cause of the problem is the latest revision of stb_vorbis throwing an error if an OGG is missing a comment field. Such files can be exported from Audacity, though usually they contain comments so this isn't caught.
Why throw an error if a file doesn't have metadata but is still playable? I'll report this issue in stb as it's not your bug.
EDIT: A PR is already open for it at stb. I reviewed it. It works. Fix inbound I'm sure.
@fluffrabbit for those of us spectating, could you post a link? 🙇🏿♂️
This thing fixes the vorbis bug: https://github.com/nothings/stb/pull/1113
Going to close this out for now, thanks so much @fluffrabbit for writing down the problem and documenting the solution. This will likely help other people running into the same problem.
With the newest stb_vorbis, cute_sound either fails to load or fails to mix certain files. The number of samples and/or channels is 0. Minimal test case:
cave-loop-mono.ogg.zip