mirror of
https://github.com/holub/mame
synced 2025-05-29 17:13:05 +03:00
sound sliders: press Del to set to 0db like before (mute is alt+left)
This commit is contained in:
parent
05d52f91b8
commit
9e5a45a945
@ -1860,7 +1860,7 @@ std::vector<ui::menu_item> mame_ui_manager::slider_init(running_machine &machine
|
||||
m_sliders.clear();
|
||||
|
||||
// add overall volume
|
||||
slider_alloc(_("Master Volume"), -96, osd::linear_to_db(0), 12, 1, std::bind(&mame_ui_manager::slider_volume, this, _1, _2));
|
||||
slider_alloc(_("Master Volume"), -96, 0, 12, 1, std::bind(&mame_ui_manager::slider_volume, this, _1, _2));
|
||||
|
||||
// add per-sound device and per-sound device channel volume
|
||||
for (device_sound_interface &snd : sound_interface_enumerator(machine.root_device()))
|
||||
@ -1869,10 +1869,10 @@ std::vector<ui::menu_item> mame_ui_manager::slider_init(running_machine &machine
|
||||
if (dynamic_cast<sound_io_device *>(&snd) || !snd.outputs())
|
||||
continue;
|
||||
|
||||
slider_alloc(util::string_format(_("%1$s volume"), snd.device().tag()), -96, osd::linear_to_db_int(snd.user_output_gain()), 12, 1, std::bind(&mame_ui_manager::slider_devvol, this, &snd, _1, _2));
|
||||
slider_alloc(util::string_format(_("%1$s volume"), snd.device().tag()), -96, 0, 12, 1, std::bind(&mame_ui_manager::slider_devvol, this, &snd, _1, _2));
|
||||
if (snd.outputs() != 1)
|
||||
for (int channel = 0; channel != snd.outputs(); channel ++)
|
||||
slider_alloc(util::string_format(_("%1$s channel %d volume"), snd.device().tag(), channel), -96, osd::linear_to_db_int(snd.user_output_gain(channel)), 12, 1, std::bind(&mame_ui_manager::slider_devvol_chan, this, &snd, channel, _1, _2));
|
||||
slider_alloc(util::string_format(_("%1$s channel %d volume"), snd.device().tag(), channel), -96, 0, 12, 1, std::bind(&mame_ui_manager::slider_devvol_chan, this, &snd, channel, _1, _2));
|
||||
}
|
||||
|
||||
// add analog adjusters
|
||||
|
Loading…
Reference in New Issue
Block a user