1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:27:45 +00:00

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.
This commit is contained in:
Cesar Torres 2021-03-26 02:03:51 +01:00 committed by Andreas Kling
parent fd126578d9
commit 0198ecca21

View file

@ -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) {