Possible bug, paused audio playing garbage

Hi,

On my WinCE device a paused audio device plays random garbage.
This might also be the issue in the thread “sound cracks with SDL_mixer
and AUDIO_S16LSB”

I don’t have that much knowledge of the SDL audio part, but the attached
patch fixes it for me, and collapses two redundant ifs.

I’m not sure if this is the correct way to fix this.
Shouldn’t the complete stream conversion part of the RunAudio loop be
dependent on the paused property of the device? (not only the call to
(*fill)(udata, istream, istream_len).

Anyways. Would be great if the patch or a fix could find its way to SVN :wink:

Cheers
Stefan
-------------- next part --------------
A non-text attachment was scrubbed…
Name: paused_audio.patch
Type: text/x-patch
Size: 1890 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090217/cdb4424d/attachment.bin

Anyways. Would be great if the patch or a fix could find its way to SVN :wink:

Done!

Thanks,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC