mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
AudioApplet: Round the volume to the nearest integer
This commit is contained in:
parent
c1458e8061
commit
3f6ccf63fe
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
m_audio_client->on_main_mix_volume_change = [this](double volume) {
|
m_audio_client->on_main_mix_volume_change = [this](double volume) {
|
||||||
m_audio_volume = static_cast<int>(volume * 100);
|
m_audio_volume = static_cast<int>(round(volume * 100));
|
||||||
m_slider->set_value(m_slider->max() - m_audio_volume, GUI::CallOnChange::No);
|
m_slider->set_value(m_slider->max() - m_audio_volume, GUI::CallOnChange::No);
|
||||||
if (!m_audio_muted)
|
if (!m_audio_muted)
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue