summaryrefslogtreecommitdiff
path: root/src/m_config.c
diff options
context:
space:
mode:
authorSimon Howard2011-03-05 19:35:39 +0000
committerSimon Howard2011-03-05 19:35:39 +0000
commit97ddedc959ecf361cc7ff2d9055aa4899252bccb (patch)
tree1ac40ce546c02a20e10ac58ea5e45487df24ee58 /src/m_config.c
parent43f6dc56eda1aa1c32d0af6dfdec8cf1b1f478eb (diff)
downloadchocolate-doom-97ddedc959ecf361cc7ff2d9055aa4899252bccb.tar.gz
chocolate-doom-97ddedc959ecf361cc7ff2d9055aa4899252bccb.tar.bz2
chocolate-doom-97ddedc959ecf361cc7ff2d9055aa4899252bccb.zip
Add configuration parameter to limit the amount of memory used for
cached soundss. Subversion-branch: /branches/strife-branch Subversion-revision: 2290
Diffstat (limited to 'src/m_config.c')
-rw-r--r--src/m_config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/m_config.c b/src/m_config.c
index bdc72a0a..0772893a 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -697,6 +697,13 @@ static default_t extra_defaults_list[] =
CONFIG_VARIABLE_INT(snd_samplerate),
//!
+ // Maximum number of bytes to allocate for caching converted sound
+ // effects in memory. If set to zero, there is no limit applied.
+ //
+
+ CONFIG_VARIABLE_INT(snd_cachesize),
+
+ //!
// The I/O port to use to access the OPL chip. Only relevant when
// using native OPL music playback.
//