summaryrefslogtreecommitdiff
path: root/src/setup/sound.c
diff options
context:
space:
mode:
authorSimon Howard2012-02-02 21:31:40 +0000
committerSimon Howard2012-02-02 21:31:40 +0000
commit9db0c9c6444dcb2aa4541466caf6b184030683ca (patch)
tree85f7be40672946c9f54aca9dbdc05bf277ffbcb6 /src/setup/sound.c
parent90e51265d69a6cbfc25f469e94b352aed6745b9d (diff)
downloadchocolate-doom-9db0c9c6444dcb2aa4541466caf6b184030683ca.tar.gz
chocolate-doom-9db0c9c6444dcb2aa4541466caf6b184030683ca.tar.bz2
chocolate-doom-9db0c9c6444dcb2aa4541466caf6b184030683ca.zip
Bind missing sound variables so the settings are not lost when running
the setup tool (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2485
Diffstat (limited to 'src/setup/sound.c')
-rw-r--r--src/setup/sound.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/setup/sound.c b/src/setup/sound.c
index f6a9e551..1ed73cc6 100644
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -69,6 +69,7 @@ int snd_sfxdevice = SNDDEVICE_SB;
int snd_musicdevice = SNDDEVICE_GENMIDI;
int snd_samplerate = 44100;
int opl_io_port = 0x388;
+int snd_cachesize = 64 * 1024 * 1024;
static int numChannels = 8;
static int sfxVolume = 15;
@@ -256,6 +257,9 @@ void BindSoundVariables(void)
M_BindVariable("snd_sbdma", &snd_sbdma);
M_BindVariable("snd_mport", &snd_mport);
+ M_BindVariable("snd_cachesize", &snd_cachesize);
+ M_BindVariable("opl_io_port", &opl_io_port);
+
if (gamemission == strife)
{
M_BindVariable("voice_volume", &voiceVolume);