From 0480c925192df4f60416f3676ff4a295e2bc9e27 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 14 Jun 2007 21:45:50 +0000 Subject: Add configuration file variable to change the sound sample rate (snd_samplerate) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 906 --- setup/configfile.c | 1 + setup/sound.c | 2 ++ setup/sound.h | 2 ++ 3 files changed, 5 insertions(+) (limited to 'setup') diff --git a/setup/configfile.c b/setup/configfile.c index 96f8bdd3..0a1e9e5f 100644 --- a/setup/configfile.c +++ b/setup/configfile.c @@ -258,6 +258,7 @@ static default_t extra_defaults_list[] = {"novert", &novert, DEFAULT_INT, 0, 0}, {"mouse_acceleration", &mouse_acceleration, DEFAULT_FLOAT, 0, 0}, {"mouse_threshold", &mouse_threshold, DEFAULT_INT, 0, 0}, + {"snd_samplerate", &snd_samplerate, DEFAULT_INT, 0, 0}, {"show_endoom", &show_endoom, DEFAULT_INT, 0, 0}, {"vanilla_savegame_limit", &vanilla_savegame_limit, DEFAULT_INT, 0, 0}, {"vanilla_demo_limit", &vanilla_demo_limit, DEFAULT_INT, 0, 0}, diff --git a/setup/sound.c b/setup/sound.c index 6cc3970d..6b427d58 100644 --- a/setup/sound.c +++ b/setup/sound.c @@ -72,6 +72,8 @@ int sfxVolume = 15; int snd_musicdevice = DEFAULT_MUSIC_DEVICE; int musicVolume = 15; +int snd_samplerate = 22050; + static int snd_sfxmode; static int snd_musicenabled; diff --git a/setup/sound.h b/setup/sound.h index 8a039f68..5ef0702e 100644 --- a/setup/sound.h +++ b/setup/sound.h @@ -29,6 +29,8 @@ extern int sfxVolume; extern int snd_musicdevice; extern int musicVolume; +extern int snd_samplerate; + void ConfigSound(void); #endif /* #ifndef SETUP_SOUND_H */ -- cgit v1.2.3