summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/frontend/mame/ui/ui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp
index 29bd836771e..7833397ef07 100644
--- a/src/frontend/mame/ui/ui.cpp
+++ b/src/frontend/mame/ui/ui.cpp
@@ -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