mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +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
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…
Add table
Add a link
Reference in a new issue