mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +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
Notes:
sideshowbarker
2024-07-18 21:02:33 +09:00
Author: https://github.com/ngc6302h
Commit: 0198ecca21
Pull-request: https://github.com/SerenityOS/serenity/pull/5878
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/RealKC
Reviewed-by: https://github.com/alimpfard
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