rnd-20020510-2-src
[rocksndiamonds.git] / src / libgame / sdl.c
index ae4e41ea7c3159ffd0decfefb452fa8e1874a9cc..c7a7f567648c4c19b4d5074d47254eeca00cedfa 100644 (file)
@@ -886,7 +886,9 @@ inline void SDLOpenAudio(void)
   audio.sound_enabled = TRUE;
 
   /* set number of available mixer channels */
-  audio.channels = Mix_AllocateChannels(NUM_MIXER_CHANNELS);
+  audio.num_channels = Mix_AllocateChannels(NUM_MIXER_CHANNELS);
+  audio.music_channel = MUSIC_CHANNEL;
+  audio.first_sound_channel = FIRST_SOUND_CHANNEL;
 
   /* reserve first channel for music loops */
   if (Mix_ReserveChannels(1) == 1)
@@ -896,6 +898,8 @@ inline void SDLOpenAudio(void)
 
   Mix_Volume(-1, SOUND_MAX_VOLUME);
   Mix_VolumeMusic(SOUND_MAX_VOLUME);
+
+  InitPlaylist();
 }
 
 inline void SDLCloseAudio(void)