diff options
Diffstat (limited to 'src/i_sound.c')
-rw-r--r-- | src/i_sound.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/i_sound.c b/src/i_sound.c index a9e953ce..0c771dc2 100644 --- a/src/i_sound.c +++ b/src/i_sound.c @@ -46,7 +46,7 @@ int snd_samplerate = 44100; static sound_module_t *sound_module; static music_module_t *music_module; -int snd_musicdevice = SNDDEVICE_SB; +int snd_musicdevice = SNDDEVICE_GENMIDI; int snd_sfxdevice = SNDDEVICE_SB; // Sound modules @@ -54,6 +54,11 @@ int snd_sfxdevice = SNDDEVICE_SB; extern sound_module_t sound_sdl_module; extern sound_module_t sound_pcsound_module; extern music_module_t music_sdl_module; +extern music_module_t music_opl_module; + +// For OPL module: + +extern int opl_io_port; // DOS-specific options: These are unused but should be maintained // so that the config file can be shared between chocolate @@ -81,6 +86,7 @@ static music_module_t *music_modules[] = { #ifdef FEATURE_SOUND &music_sdl_module, + &music_opl_module, #endif NULL, }; @@ -245,7 +251,6 @@ void I_UpdateSound(void) static void CheckVolumeSeparation(int *sep, int *vol) { -return; if (*sep < 0) { *sep = 0; @@ -407,6 +412,7 @@ void I_BindSoundVariables(void) M_BindVariable("snd_sbdma", &snd_sbdma); M_BindVariable("snd_mport", &snd_mport); M_BindVariable("snd_samplerate", &snd_samplerate); + M_BindVariable("opl_io_port", &opl_io_port); #ifdef FEATURE_SOUND M_BindVariable("use_libsamplerate", &use_libsamplerate); #endif |