mirror of
https://github.com/holub/mame
synced 2025-04-30 03:47:13 +03:00
sound: removed cfg defvol/newvol (was already deprecated)
This commit is contained in:
parent
93533fa436
commit
c4eff71c34
@ -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
|
// note that this doesn't disallow out-of-range values
|
||||||
float value = node->get_attribute_float("value", std::nanf(""));
|
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))
|
if (!std::isnan(value))
|
||||||
info.stream->input(info.inputnum).set_user_gain(value);
|
info.stream->input(info.inputnum).set_user_gain(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user