SDL Forum Index
SDL
Simple DirectMedia Layer Forums
Reply to topic
SDL2 has issues playing valid 32bit WAV files
Jake


Joined: 05 Feb 2017
Posts: 1
Reply with quote
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.
View user's profileSend private message
Jake


Joined: 05 Feb 2017
Posts: 1
Reply with quote
This now fixed here: https://hg.libsdl.org/SDL/rev/748bedefb03f

In reference to my S/O post it seems.
View user's profileSend private message
SDL2 has issues playing valid 32bit WAV files
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic