[PATCH] Correct OGG music looping

Bug description : looping music when playing .ogg files left an audible
gap in the mixer buffer.

Bug fix : OGG_playAudio() now returns the actual read length.
music_mixer restarts the music and calls OGG_playAudio() again if it
didn’t fill the buffer.

Notes : Tested in Linux and works fine. Since there’s no platform
dependent code involved, it should work everywhere else.

A similar fix for the rest of the music formats should be easy, but
since I can’t test it at the time, I opted not to do it.

    --Gabriel-- 

Gabriel Gambetta
Mystery Studio - http://www.mysterystudio.com
Gabriel on Graphics - http://gabrielongraphics.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed…
Name: ogg-music-looping.patch
Type: text/x-patch
Size: 3061 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051013/6f51ec55/attachment.bin

Bug description : looping music when playing .ogg files left an audible
gap in the mixer buffer.

Bug fix : OGG_playAudio() now returns the actual read length.
music_mixer restarts the music and calls OGG_playAudio() again if it
didn’t fill the buffer.

This is in CVS, thanks!

–ryan.