mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- fixed CVAR assignment for number of sound channels.
This commit is contained in:
parent
72036721d5
commit
62fd8a49c1
2 changed files with 1 additions and 13 deletions
|
@ -148,18 +148,6 @@ CUSTOM_CVARD(Int, snd_mixrate, 44100, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "sound mix
|
||||||
else if (self > 48000) self = 48000;
|
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")
|
CUSTOM_CVARD(Int, snd_speech, 5, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "enables/disables player speech")
|
||||||
{
|
{
|
||||||
if (self < 0) self = 0;
|
if (self < 0) self = 0;
|
||||||
|
|
|
@ -1316,7 +1316,7 @@ OptionMenu SoundOptions //protected
|
||||||
Option "$SNDMNU_MIDIDEVICE", "snd_mididevice", "MidiDevices"
|
Option "$SNDMNU_MIDIDEVICE", "snd_mididevice", "MidiDevices"
|
||||||
StaticText " "
|
StaticText " "
|
||||||
//Option "$SNDMNU_UNDERWATERREVERB", "snd_waterreverb", "OnOff"
|
//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 ""
|
staticText ""
|
||||||
ifgame (Blood, ShadowWarrior, Redneck, RedneckRides)
|
ifgame (Blood, ShadowWarrior, Redneck, RedneckRides)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue