commit 88e70502930e07626526750e0d3230cc2d1260f7
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Feb 12 21:29:58 2008 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Tue Feb 12 21:29:58 2008 +0000
Add use_libsamplerate variable to setup.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1082
---
setup/configfile.c | 1 +
setup/sound.c | 2 ++
setup/sound.h | 2 ++
3 files changed, 5 insertions(+)
diff --git a/setup/configfile.c b/setup/configfile.c
index bbde0bbb..3f75d7f1 100644
--- a/setup/configfile.c
+++ b/setup/configfile.c
@@ -281,6 +281,7 @@ static default_t extra_defaults_list[] =
{"mouseb_straferight", &mousebstraferight, DEFAULT_INT, 0, 0},
{"mouseb_use", &mousebuse, DEFAULT_INT, 0, 0},
{"mouseb_backward", &mousebbackward, DEFAULT_INT, 0, 0},
+ {"use_libsamplerate", &use_libsamplerate, DEFAULT_INT, 0, 0},
};
static default_collection_t extra_defaults =
diff --git a/setup/sound.c b/setup/sound.c
index 6b427d58..72414c83 100644
--- a/setup/sound.c
+++ b/setup/sound.c
@@ -74,6 +74,8 @@ int musicVolume = 15;
int snd_samplerate = 22050;
+int use_libsamplerate = 0;
+
static int snd_sfxmode;
static int snd_musicenabled;
diff --git a/setup/sound.h b/setup/sound.h
index 5ef0702e..170dda0a 100644
--- a/setup/sound.h
+++ b/setup/sound.h
@@ -31,6 +31,8 @@ extern int musicVolume;
extern int snd_samplerate;
+extern int use_libsamplerate;
+
void ConfigSound(void);
#endif /* #ifndef SETUP_SOUND_H */