volume: increase dB range to -90dB
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Apr 2009 20:41:38 +0000 (22:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Apr 2009 20:41:44 +0000 (22:41 +0200)
Increasing the volume range to -90dB has the benefit of corresponding
with a volume decrease from the full 16 bit signal to 0.

This also makes us a bit more like traditional stereos

src/pulse/volume.c

index ad3b3a4..6848771 100644 (file)
@@ -120,7 +120,7 @@ pa_volume_t pa_sw_volume_divide(pa_volume_t a, pa_volume_t b) {
     return pa_sw_volume_from_linear(pa_sw_volume_to_linear(a) / v);
 }
 
-#define USER_DECIBEL_RANGE 60
+#define USER_DECIBEL_RANGE 90
 
 pa_volume_t pa_sw_volume_from_dB(double dB) {
     if (isinf(dB) < 0 || dB <= -USER_DECIBEL_RANGE)