summaryrefslogtreecommitdiff
path: root/src/i_sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_sound.c')
-rw-r--r--src/i_sound.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i_sound.c b/src/i_sound.c
index 0c771dc2..2e9e71db 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -41,6 +41,11 @@
int snd_samplerate = 44100;
+// Maximum number of bytes to dedicate to allocated sound effects.
+// (Default: 64MB)
+
+int snd_cachesize = 64 * 1024 * 1024;
+
// Low-level sound and music modules we are using
static sound_module_t *sound_module;
@@ -412,6 +417,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("snd_cachesize", &snd_cachesize);
M_BindVariable("opl_io_port", &opl_io_port);
#ifdef FEATURE_SOUND
M_BindVariable("use_libsamplerate", &use_libsamplerate);