- on second thought: this shouldn't explode the speakers with too high values.

This commit is contained in:
Christoph Oelckers 2016-02-02 15:02:06 +01:00
parent c002c2fde9
commit 66f053f131
2 changed files with 6 additions and 2 deletions

View file

@ -129,7 +129,11 @@ CVAR(Bool, mod_autochip, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
CVAR(Int, mod_autochip_size_force, 100, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
CVAR(Int, mod_autochip_size_scan, 500, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
CVAR(Int, mod_autochip_scan_threshold, 12, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
CVAR(Float, mod_dumb_mastervolume, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
CUSTOM_CVAR(Float, mod_dumb_mastervolume, 1.f, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
{
if (self < 0.5f) self = 0.5f;
else if (self > 16.f) self = 16.f;
}
// PRIVATE DATA DEFINITIONS ------------------------------------------------

View file

@ -1651,7 +1651,7 @@ OptionMenu ModReplayerOptions
Title "MODULE REPLAYER OPTIONS"
Option "Replayer engine", "mod_dumb", "ModReplayers"
StaticText " "
Slider "Master Volume", "mod_dumb_mastervolume", 1, 32, 1, 1
Slider "Master Volume", "mod_dumb_mastervolume", 1, 16, 0.5, 1
Option "Sample rate", "mod_samplerate", "SampleRates", "mod_dumb"
Option "Quality", "mod_interp", "ModQuality", "mod_dumb"
Option "Volume ramping", "mod_volramp", "ModVolumeRamps", "mod_dumb"