shithub: choc

Download patch

ref: 4878ba55d2db88aaab117628cc1e91933cc0e50e
parent: 765ca3a04dafe63b8803443067293ee46f53b951
author: Simon Howard <fraggle@gmail.com>
date: Sat Mar 22 20:58:38 EDT 2014

setup: Add missing snd_maxslicetime_ms variable.

Preserve the snd_maxslicetime_ms variable when loading/saving configs
in the setup tool.

--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -74,6 +74,7 @@
 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 @@
     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);