mixer.c
changeset 158 954c719d0359
parent 157 3d87d169927f
child 163 1e195b569764
     1.1 --- a/mixer.c	Mon Jan 14 19:29:17 2002 +0000
     1.2 +++ b/mixer.c	Mon Jan 14 19:35:45 2002 +0000
     1.3 @@ -620,9 +620,9 @@
     1.4  
     1.5  		/* Queue up the audio data for this channel */
     1.6  		if ( which >= 0 ) {
     1.7 +			Uint32 sdl_ticks = SDL_GetTicks();
     1.8  			if (Mix_Playing(which))
     1.9  				Mix_ChannelDonePlaying(which);
    1.10 -			Uint32 sdl_ticks = SDL_GetTicks();
    1.11  			mix_channel[which].samples = chunk->abuf;
    1.12  			mix_channel[which].playing = chunk->alen;
    1.13  			mix_channel[which].looping = loops;
    1.14 @@ -686,9 +686,9 @@
    1.15  
    1.16  		/* Queue up the audio data for this channel */
    1.17  		if ( which >= 0 ) {
    1.18 +			Uint32 sdl_ticks = SDL_GetTicks();
    1.19  			if (Mix_Playing(which))
    1.20  				Mix_ChannelDonePlaying(which);
    1.21 -			Uint32 sdl_ticks = SDL_GetTicks();
    1.22  			mix_channel[which].samples = chunk->abuf;
    1.23  			mix_channel[which].playing = chunk->alen;
    1.24  			mix_channel[which].looping = loops;