SoundPlayer: Enable frequency energy adjustment by default

Although it's nice to have this as an option, it should be the default
to adjust higher frequencies as they intrinsically have less energy than
lower energies.
This commit is contained in:
kleines Filmröllchen 2022-03-03 21:14:37 +01:00 committed by Andreas Kling
parent 8185e7e932
commit 02462b6068
Notes: sideshowbarker 2024-07-17 17:25:45 +09:00

View file

@ -67,14 +67,15 @@ void BarsVisualizationWidget::paint_event(GUI::PaintEvent& event)
}
BarsVisualizationWidget::BarsVisualizationWidget()
: m_last_id(-1)
, m_is_using_last(false)
, m_adjust_frequencies(false)
: m_is_using_last(false)
, m_adjust_frequencies(true)
{
m_context_menu = GUI::Menu::construct();
m_context_menu->add_action(GUI::Action::create_checkable("Adjust frequency energy (for aesthetics)", [&](GUI::Action& action) {
auto frequency_energy_action = GUI::Action::create_checkable("Adjust frequency energy (for aesthetics)", [&](GUI::Action& action) {
m_adjust_frequencies = action.is_checked();
}));
});
frequency_energy_action->set_checked(true);
m_context_menu->add_action(frequency_energy_action);
}
// black magic from Hacker's delight