summaryrefslogtreecommitdiff
path: root/src/m_misc.c
diff options
context:
space:
mode:
authorSimon Howard2008-02-11 22:59:51 +0000
committerSimon Howard2008-02-11 22:59:51 +0000
commit4f16d8163cedb8b42ac01512c32a54023708b0ec (patch)
tree98a5d1a97c158b898cae90c1800b13513e22d07b /src/m_misc.c
parent7db1399a0eb488fafbfc07ce6cf117f276ce03d9 (diff)
downloadchocolate-doom-4f16d8163cedb8b42ac01512c32a54023708b0ec.tar.gz
chocolate-doom-4f16d8163cedb8b42ac01512c32a54023708b0ec.tar.bz2
chocolate-doom-4f16d8163cedb8b42ac01512c32a54023708b0ec.zip
Add support for sample rate conversion using libsamplerate (thanks to
David Flater for this patch). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1076
Diffstat (limited to 'src/m_misc.c')
-rw-r--r--src/m_misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/m_misc.c b/src/m_misc.c
index d3f531b0..d1b9c567 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -299,6 +299,10 @@ extern int snd_musicdevice;
extern int snd_sfxdevice;
extern int snd_samplerate;
+// controls whether to use libsamplerate for sample rate conversions
+
+extern int use_libsamplerate;
+
// dos specific options: these are unused but should be maintained
// so that the config file can be shared between chocolate
// doom and doom.exe
@@ -444,6 +448,7 @@ static default_t extra_defaults_list[] =
{"mouseb_backward", &mousebbackward, DEFAULT_INT, 0, 0},
{"dclick_use", &dclick_use, DEFAULT_INT, 0, 0},
+ {"use_libsamplerate", &use_libsamplerate, DEFAULT_INT, 0, 0},
};
static default_collection_t extra_defaults =