diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-03-03 21:14:37 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-14 22:45:05 +0100 |
commit | 02462b606842852bdced42d1d7495173f613c352 (patch) | |
tree | 0498fb9ea2bb4ff9e30269fa5862b5aebcbbe0ba | |
parent | 8185e7e932cf55eddd95f2b88605694bb352ca2f (diff) | |
download | serenity-02462b606842852bdced42d1d7495173f613c352.zip |
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.
-rw-r--r-- | Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp b/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp index 3e6ca3d75b..648e141fa1 100644 --- a/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp +++ b/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp @@ -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 |