diff options
author | Simon Howard | 2008-02-12 21:29:58 +0000 |
---|---|---|
committer | Simon Howard | 2008-02-12 21:29:58 +0000 |
commit | 88e70502930e07626526750e0d3230cc2d1260f7 (patch) | |
tree | 479008016b2507ff61585bcc94b8bd9b4b406b1c | |
parent | 53fa6c27c20f3abd7f290a39a97bfb9bae452b2d (diff) | |
download | chocolate-doom-88e70502930e07626526750e0d3230cc2d1260f7.tar.gz chocolate-doom-88e70502930e07626526750e0d3230cc2d1260f7.tar.bz2 chocolate-doom-88e70502930e07626526750e0d3230cc2d1260f7.zip |
Add use_libsamplerate variable to setup.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1082
-rw-r--r-- | setup/configfile.c | 1 | ||||
-rw-r--r-- | setup/sound.c | 2 | ||||
-rw-r--r-- | setup/sound.h | 2 |
3 files changed, 5 insertions, 0 deletions
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 */ |