SDL2 has issues playing valid 32bit WAV files |
Jake
|
Please refer to: http://gamedev.stackexchange.com/q/136817/95877
The post, it's child (the stack overflow post) are very detailed and should make sense. TL;DR: SDL2, specifically: https://github.com/spurious/SDL-mirror/blob/13666b37a08a78bb209b5c584f74846f7e7b5cf2/src/audio/SDL_wave.c#L474 only allows WAV files to be played with the 0x0001 audio format header flag, BUT programs like `sox` and `ffmpeg` add the extensible flag (0xfffe) for files over 16bits. Removing the extensible flag manually and playing the WAV in SDL2 works, so this is either a problem with SDL2 not accepting the flag (which would be trivial to add), or ffmpeg / other programs not allowing the flag to be disabled (which would require much more effort I feel). Is this something I should make a Pull Request about? Or is this something that should be discussed with ffmpeg team? NOTE: I moved this out of Game Development section, not sure how it got put there by me. |
|||||||||||
|
Jake
|
This now fixed here: https://hg.libsdl.org/SDL/rev/748bedefb03f
In reference to my S/O post it seems. |
|||||||||||
|