Remember, kids: ALWAYS try and compile your patches before you mail them
off to the SDL mailing list!
(sigh)
Sorry about that. Fixed patch is below.
–ryan.
Index: mixer.c===================================================================
RCS file: /home/slouken/libsdl.org/cvs/SDL_mixer/mixer.c,v
retrieving revision 1.32
diff -u -r1.32 mixer.c
— mixer.c 2001/12/17 21:26:38 1.32
+++ mixer.c 2002/01/13 21:18:02
@@ -620,7 +620,11 @@
/* Queue up the audio data for this channel */
if ( which >= 0 ) {
-
Uint32 sdl_ticks = SDL_GetTicks();
-
Uint32 sdl_ticks;
-
if (Mix_Playing(which))
-
Mix_ChannelDonePlaying(which);
-
sdl_ticks = SDL_GetTicks(); mix_channel[which].samples = chunk->abuf; mix_channel[which].playing = chunk->alen; mix_channel[which].looping = loops;
@@ -684,7 +688,11 @@
/* Queue up the audio data for this channel */
if ( which >= 0 ) {
-
Uint32 sdl_ticks = SDL_GetTicks();
-
Uint32 sdl_ticks;
-
if (Mix_Playing(which))
-
Mix_ChannelDonePlaying(which);
-
sdl_ticks = SDL_GetTicks(); mix_channel[which].samples = chunk->abuf; mix_channel[which].playing = chunk->alen; mix_channel[which].looping = loops;