summaryrefslogtreecommitdiff
path: root/src/i_sound.c
diff options
context:
space:
mode:
authorSimon Howard2015-06-08 20:58:48 -0400
committerSimon Howard2015-06-08 20:58:48 -0400
commite81997d7571cbe9372c4fe66b644d0d9a5059b6f (patch)
tree19e6095a4446bbf5af4d1ab48dc650d2755974d2 /src/i_sound.c
parente986a93409fd717fd01c93199c84ac5788bafebe (diff)
downloadchocolate-doom-e81997d7571cbe9372c4fe66b644d0d9a5059b6f.tar.gz
chocolate-doom-e81997d7571cbe9372c4fe66b644d0d9a5059b6f.tar.bz2
chocolate-doom-e81997d7571cbe9372c4fe66b644d0d9a5059b6f.zip
Replace "opl_type" config variable with DMXOPTION.
Vanilla Doom used the DMXOPTION environment variable to control whether OPL3 output was generated. Emulate this, and use a config file variable that can set DMXOPTION without needing to configure it via an environment variable.
Diffstat (limited to 'src/i_sound.c')
-rw-r--r--src/i_sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i_sound.c b/src/i_sound.c
index 03a9facc..a646aed1 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -68,7 +68,6 @@ extern music_module_t music_opl_module;
extern opl_driver_ver_t opl_drv_ver;
extern int opl_io_port;
-extern int opl_type;
// For native music module:
@@ -433,6 +432,7 @@ boolean I_MusicIsPlaying(void)
void I_BindSoundVariables(void)
{
+ extern char *snd_dmxoption;
extern int use_libsamplerate;
extern float libsamplerate_scale;
@@ -444,10 +444,10 @@ void I_BindSoundVariables(void)
M_BindIntVariable("snd_mport", &snd_mport);
M_BindIntVariable("snd_maxslicetime_ms", &snd_maxslicetime_ms);
M_BindStringVariable("snd_musiccmd", &snd_musiccmd);
+ M_BindStringVariable("snd_dmxoption", &snd_dmxoption);
M_BindIntVariable("snd_samplerate", &snd_samplerate);
M_BindIntVariable("snd_cachesize", &snd_cachesize);
M_BindIntVariable("opl_io_port", &opl_io_port);
- M_BindIntVariable("opl_type", &opl_type);
M_BindStringVariable("timidity_cfg_path", &timidity_cfg_path);
M_BindStringVariable("gus_patch_path", &gus_patch_path);