- fixed CVAR assignment for number of sound channels.

This commit is contained in:
Christoph Oelckers 2020-01-03 00:47:13 +01:00
parent 72036721d5
commit 62fd8a49c1
2 changed files with 1 additions and 13 deletions

View file

@ -148,18 +148,6 @@ CUSTOM_CVARD(Int, snd_mixrate, 44100, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "sound mix
else if (self > 48000) self = 48000;
}
CUSTOM_CVARD(Int, snd_numchannels, 2, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "the number of sound channels")
{
if (self < 1) self = 1;
else if (self > 2) self = 2;
}
CUSTOM_CVARD(Int, snd_numvoices, 64, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "the number of concurrent sounds")
{
if (self < 8) self = 8;
else if (self > 128) self = 128;
}
CUSTOM_CVARD(Int, snd_speech, 5, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "enables/disables player speech")
{
if (self < 0) self = 0;

View file

@ -1316,7 +1316,7 @@ OptionMenu SoundOptions //protected
Option "$SNDMNU_MIDIDEVICE", "snd_mididevice", "MidiDevices"
StaticText " "
//Option "$SNDMNU_UNDERWATERREVERB", "snd_waterreverb", "OnOff"
Slider "$SNDMNU_CHANNELS", "snd_numchannels", 64, 128, 8, 0
Slider "$SNDMNU_CHANNELS", "snd_channels", 64, 128, 8, 0
staticText ""
ifgame (Blood, ShadowWarrior, Redneck, RedneckRides)
{