looping music

Andreas Umbach marvin at cyclops.webvision.ch
Sun Nov 25 11:22:09 EST 2001


Hi,

I'm currently rewriting GLtron's (http://www.gltron.org/) sound handling,
and I'm ditching SDL_mixer for SDL_sound (does that make me the first real
SDL_sound user? :-).

I'm playing a MOD or mp3 soundtrack in the background. The question is,
how do I best implement a loop?

I assume I reach the end of the piece when Sound_Decode returns less than
buffer_size byte (and the EOF flag is set).

How do I tell SDL_Sound to 'rewind' the sample? Or do I need to recreate it?

- Andreas
-- 
Check out my 3D lightcycle game: http://www.gltron.org/
More than 200'000 Downloads of the latest version (0.61)



More information about the sdlsound mailing list