Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update SDL_mixer for newer versions of SDL
  • Loading branch information
slouken committed Jul 8, 2007
1 parent efa2af3 commit 667ddfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mixer.c
Expand Up @@ -158,6 +158,9 @@ static void mix_channels(void *udata, Uint8 *stream, int len)
int i, mixable, volume;
Uint32 sdl_ticks;

/* Initialize the audio stream (needed for 1.2.12 and later)
memset(stream, 0, len);
/* Mix the music (must be done before the channels are added) */
if ( music_active || (mix_music != music_mixer) ) {
mix_music(music_data, stream, len);
Expand Down

0 comments on commit 667ddfb

Please sign in to comment.