AudioServer: Decrease sample headroom to 5%

This might still be too much, but it's better than what we had before.
This commit is contained in:
kleines Filmröllchen 2022-03-03 11:29:40 +01:00 committed by Andreas Kling
parent 1088c2c716
commit 79deb7d6c7
Notes: sideshowbarker 2024-07-17 17:25:19 +09:00

View file

@ -28,7 +28,7 @@ namespace AudioServer {
// 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.
constexpr double SAMPLE_HEADROOM = 0.7;
constexpr double SAMPLE_HEADROOM = 0.95;
class ConnectionFromClient;