SDL_mixer patch, take 2:

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;

Remember, kids: ALWAYS try and compile your patches before you mail them
off to the SDL mailing list!

Oops, I jumped the gun, applied the patch, applied a fix, and committed it
to CVS. Can you check out the code and make sure I did “The Right Thing ™”?

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Oops, I jumped the gun, applied the patch, applied a fix, and committed it
to CVS. Can you check out the code and make sure I did “The Right Thing ™”?

Looks good.

Sorry 'bout that,
–ryan.