*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Jan 2002 19:29:17 +0000
changeset 1573d87d169927f
parent 156 930a322685b0
child 158 954c719d0359
*** empty log message ***
mixer.c
     1.1 --- a/mixer.c	Fri Dec 28 14:19:28 2001 +0000
     1.2 +++ b/mixer.c	Mon Jan 14 19:29:17 2002 +0000
     1.3 @@ -620,6 +620,8 @@
     1.4  
     1.5  		/* Queue up the audio data for this channel */
     1.6  		if ( which >= 0 ) {
     1.7 +			if (Mix_Playing(which))
     1.8 +				Mix_ChannelDonePlaying(which);
     1.9  			Uint32 sdl_ticks = SDL_GetTicks();
    1.10  			mix_channel[which].samples = chunk->abuf;
    1.11  			mix_channel[which].playing = chunk->alen;
    1.12 @@ -684,6 +686,8 @@
    1.13  
    1.14  		/* Queue up the audio data for this channel */
    1.15  		if ( which >= 0 ) {
    1.16 +			if (Mix_Playing(which))
    1.17 +				Mix_ChannelDonePlaying(which);
    1.18  			Uint32 sdl_ticks = SDL_GetTicks();
    1.19  			mix_channel[which].samples = chunk->abuf;
    1.20  			mix_channel[which].playing = chunk->alen;