mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 10:00:24 +00:00
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:
parent
8185e7e932
commit
02462b6068
Notes:
sideshowbarker
2024-07-17 17:25:45 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/02462b6068 Pull-request: https://github.com/SerenityOS/serenity/pull/12868
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue