foxygit / doom Log in
commit 4878ba55d2db88aaab117628cc1e91933cc0e50e
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Mar 23 00:58:38 2014 -0400
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sun Mar 23 00:58:38 2014 -0400

    setup: Add missing snd_maxslicetime_ms variable.

    Preserve the snd_maxslicetime_ms variable when loading/saving configs
    in the setup tool.
---
 src/setup/sound.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/setup/sound.c b/src/setup/sound.c
index ab78cdf5..f1603e84 100644
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -74,6 +74,7 @@ int snd_musicdevice = SNDDEVICE_SB;
 int snd_samplerate = 44100;
 int opl_io_port = 0x388;
 int snd_cachesize = 64 * 1024 * 1024;
+int snd_maxslicetime_ms = 28;
 char *snd_musiccmd = "";

 static int numChannels = 8;
@@ -318,6 +319,7 @@ void BindSoundVariables(void)
     M_BindVariable("snd_sbirq",           &snd_sbirq);
     M_BindVariable("snd_sbdma",           &snd_sbdma);
     M_BindVariable("snd_mport",           &snd_mport);
+    M_BindVariable("snd_maxslicetime_ms", &snd_maxslicetime_ms);
     M_BindVariable("snd_musiccmd",        &snd_musiccmd);

     M_BindVariable("snd_cachesize",       &snd_cachesize);