projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20020510-8-src
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index ae4e41ea7c3159ffd0decfefb452fa8e1874a9cc..6365c87161db3a0efb246895c26195f5be95d321 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-886,7
+886,9
@@
inline void SDLOpenAudio(void)
audio.sound_enabled = TRUE;
/* set number of available mixer channels */
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)
/* 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);
Mix_Volume(-1, SOUND_MAX_VOLUME);
Mix_VolumeMusic(SOUND_MAX_VOLUME);
+
+ Mixer_InitChannels();
}
inline void SDLCloseAudio(void)
}
inline void SDLCloseAudio(void)