sound: removed cfg defvol/newvol (was already deprecated)

This commit is contained in:
hap 2023-12-10 21:29:12 +01:00
parent 93533fa436
commit c4eff71c34

View File

@ -1385,15 +1385,6 @@ void sound_manager::config_load(config_type cfg_type, config_level cfg_level, ut
// note that this doesn't disallow out-of-range values
float value = node->get_attribute_float("value", std::nanf(""));
if (std::isnan(value))
{
// TODO: remove defvol and newvol in 2024
float defvol = node->get_attribute_float("defvol", 1.0f);
float newvol = node->get_attribute_float("newvol", -1000.0f);
if (newvol != -1000.0f && defvol != 0.0f)
value = newvol / defvol;
}
if (!std::isnan(value))
info.stream->input(info.inputnum).set_user_gain(value);
}