Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
*** empty log message ***
  • Loading branch information
slouken committed Jan 14, 2002
1 parent f51d255 commit b163119
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mixer.c
Expand Up @@ -620,6 +620,8 @@ int Mix_PlayChannelTimed(int which, Mix_Chunk *chunk, int loops, int ticks)

/* Queue up the audio data for this channel */
if ( which >= 0 ) {
if (Mix_Playing(which))
Mix_ChannelDonePlaying(which);
Uint32 sdl_ticks = SDL_GetTicks();
mix_channel[which].samples = chunk->abuf;
mix_channel[which].playing = chunk->alen;
Expand Down Expand Up @@ -684,6 +686,8 @@ int Mix_FadeInChannelTimed(int which, Mix_Chunk *chunk, int loops, int ms, int t

/* Queue up the audio data for this channel */
if ( which >= 0 ) {
if (Mix_Playing(which))
Mix_ChannelDonePlaying(which);
Uint32 sdl_ticks = SDL_GetTicks();
mix_channel[which].samples = chunk->abuf;
mix_channel[which].playing = chunk->alen;
Expand Down

0 comments on commit b163119

Please sign in to comment.