From 97ddedc959ecf361cc7ff2d9055aa4899252bccb Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 5 Mar 2011 19:35:39 +0000 Subject: Add configuration parameter to limit the amount of memory used for cached soundss. Subversion-branch: /branches/strife-branch Subversion-revision: 2290 --- src/m_config.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/m_config.c') 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 @@ -696,6 +696,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. -- cgit v1.2.3