projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20020510-2-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 0499199253932189b2aea2da1fcf49f3e651c1bf..42c4a6ecfeba9c9df412a0673046a450863afa55 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-745,10
+745,11
@@
inline void OpenAudio(void)
audio.soundserver_pipe[0] = audio.soundserver_pipe[1] = 0;
audio.soundserver_pid = -1;
audio.device_name = NULL;
audio.soundserver_pipe[0] = audio.soundserver_pipe[1] = 0;
audio.soundserver_pid = -1;
audio.device_name = NULL;
- audio.device_fd =
0
;
+ audio.device_fd =
-1
;
- audio.channels = 0;
+ audio.
num_
channels = 0;
audio.music_channel = 0;
audio.music_channel = 0;
+ audio.first_sound_channel = 0;
#if defined(TARGET_SDL)
SDLOpenAudio();
#if defined(TARGET_SDL)
SDLOpenAudio();
@@
-780,15
+781,6
@@
inline void SetAudioMode(boolean enabled)
audio.sound_enabled = enabled;
}
audio.sound_enabled = enabled;
}
-#if 0
-inline void SetAudioReloadFunctions(void (*func_reload_sounds)(void),
- void (*func_reload_music)(void))
-{
- audio.func_reload_sounds = func_reload_sounds;
- audio.func_reload_music = func_reload_music;
-}
-#endif
-
/* ========================================================================= */
/* event functions */
/* ========================================================================= */
/* event functions */