summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorCesar Torres <shortanemoia@protonmail.com>2021-03-26 02:03:51 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-27 10:20:55 +0100
commit0198ecca21a1d0b4b71708a0fa08329bd13e4946 (patch)
tree092b602b0c920b210d92dbbd65278e7133cf84d8 /Userland/Services
parentfd126578d9be0b6d3c86227b491a270d091acb1b (diff)
downloadserenity-0198ecca21a1d0b4b71708a0fa08329bd13e4946.zip
AudioServer: don't set an upper limit on volume in mixer
Let's not limit volume so we can play clips at over 100% without the need to process the audio samples twice.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/AudioServer/Mixer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/AudioServer/Mixer.cpp b/Userland/Services/AudioServer/Mixer.cpp
index 30230570f9..d9fb48008e 100644
--- a/Userland/Services/AudioServer/Mixer.cpp
+++ b/Userland/Services/AudioServer/Mixer.cpp
@@ -134,8 +134,8 @@ void Mixer::mix()
void Mixer::set_main_volume(int volume)
{
- if (volume > 100)
- m_main_volume = 100;
+ if (volume < 0)
+ m_main_volume = 0;
else
m_main_volume = volume;
ClientConnection::for_each([volume](ClientConnection& client) {