WAV decoder bug

torbjorn.e.andersson at tietoenator.com torbjorn.e.andersson at tietoenator.com
Thu Jun 13 02:19:36 EDT 2002

Playsound chokes on the WAV files that come with the game IceBreaker
(http://www.mattdm.org/icebreaker/), while SDL_mixer handles them just
fine. This is apparently because although the WAVs are uncompressed,
the fmt chunk is larger than the usual 16 bytes, causing the decoder
to miss the subsequent data chunk.

The attached patch is a quick hack that I believe should guarantee
that it looks for the next chunk at the correct offset.


TietoEnator Resource Management AB
Torbjörn Andersson

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wav.diff.gz
Type: application/octet-stream
Size: 495 bytes
Desc: not available
URL: <http://icculus.org/pipermail/sdlsound/attachments/20020613/7a7c5c2f/attachment.obj>

More information about the sdlsound mailing list