diff options
author | Simon Howard | 2014-03-23 00:07:40 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-23 00:07:40 -0400 |
commit | a3e2dbc78825378307509201f904a1de3bf8bab8 (patch) | |
tree | 9197eccbbdea20031939eee564758c0b11dcac12 /src/m_config.c | |
parent | 4788fd8387b4206df42a95c3c2f9b848bf4eac20 (diff) | |
download | chocolate-doom-a3e2dbc78825378307509201f904a1de3bf8bab8.tar.gz chocolate-doom-a3e2dbc78825378307509201f904a1de3bf8bab8.tar.bz2 chocolate-doom-a3e2dbc78825378307509201f904a1de3bf8bab8.zip |
sound: Add config variable to control buffer size.
Add snd_maxslicetime_ms variable to control the size of the output
sound buffer, and reduce the default from 70ms to 28ms to match Doom's
35fps timer. Thanks to Holering for reporting this (fixes #345).
Diffstat (limited to 'src/m_config.c')
-rw-r--r-- | src/m_config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/m_config.c b/src/m_config.c index 3f0c24cf..edc0a174 100644 --- a/src/m_config.c +++ b/src/m_config.c @@ -798,6 +798,15 @@ static default_t extra_defaults_list[] = CONFIG_VARIABLE_INT(snd_cachesize), //! + // Maximum size of the output sound buffer size in milliseconds. + // Sound output is generated periodically in slices. Higher values + // might be more efficient but will introduce latency to the + // sound output. The default is 28ms (one slice per tic with the + // 35fps timer). + + CONFIG_VARIABLE_INT(snd_maxslicetime_ms), + + //! // The I/O port to use to access the OPL chip. Only relevant when // using native OPL music playback. // |