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:
parent
fd126578d9
commit
0198ecca21
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue