Browse Source

AudioServer: Decrease sample headroom to 5%

This might still be too much, but it's better than what we had before.
kleines Filmröllchen 3 years ago
parent
commit
79deb7d6c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Services/AudioServer/Mixer.h

+ 1 - 1
Userland/Services/AudioServer/Mixer.h

@@ -28,7 +28,7 @@ namespace AudioServer {
 
 
 // Headroom, i.e. fixed attenuation for all audio streams.
 // Headroom, i.e. fixed attenuation for all audio streams.
 // This is to prevent clipping when two streams with low headroom (e.g. normalized & compressed) are playing.
 // This is to prevent clipping when two streams with low headroom (e.g. normalized & compressed) are playing.
-constexpr double SAMPLE_HEADROOM = 0.7;
+constexpr double SAMPLE_HEADROOM = 0.95;
 
 
 class ConnectionFromClient;
 class ConnectionFromClient;