diff options
author | Simon Howard | 2008-09-25 18:14:46 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-25 18:14:46 +0000 |
commit | 6ebcafd7003cce44d1edd1115e737f1aa826ba1c (patch) | |
tree | 415dd7efa69bbbee473447e62350b7a88b7551b3 /src/i_sound.c | |
parent | facc2f70b1bfac51ddaefb78fcbef04a8d5c8e2b (diff) | |
download | chocolate-doom-6ebcafd7003cce44d1edd1115e737f1aa826ba1c.tar.gz chocolate-doom-6ebcafd7003cce44d1edd1115e737f1aa826ba1c.tar.bz2 chocolate-doom-6ebcafd7003cce44d1edd1115e737f1aa826ba1c.zip |
Add option to low-level sound API to disable the DS prefix for sound
effects, for Heretic. Fix sound links.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1281
Diffstat (limited to 'src/i_sound.c')
-rw-r--r-- | src/i_sound.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i_sound.c b/src/i_sound.c index e6910ea7..2a29ccff 100644 --- a/src/i_sound.c +++ b/src/i_sound.c @@ -112,7 +112,7 @@ static boolean SndDeviceInList(snddevice_t device, snddevice_t *list, // Find and initialise a sound_module_t appropriate for the setting // in snd_sfxdevice. -static void InitSfxModule(void) +static void InitSfxModule(boolean use_sfx_prefix) { int i; @@ -129,7 +129,7 @@ static void InitSfxModule(void) { // Initialise the module - if (sound_modules[i]->Init()) + if (sound_modules[i]->Init(use_sfx_prefix)) { sound_module = sound_modules[i]; return; @@ -172,7 +172,7 @@ static void InitMusicModule(void) // allocates channel buffer, sets S_sfx lookup. // -void I_InitSound(void) +void I_InitSound(boolean use_sfx_prefix) { boolean nosound, nosfx, nomusic; @@ -206,7 +206,7 @@ void I_InitSound(void) { if (!nosfx) { - InitSfxModule(); + InitSfxModule(use_sfx_prefix); } if (!nomusic) |