summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-08 00:13:53 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-08 00:13:53 +0200
commitb048ae9f789cdbc7540b343fb1890a86d91a505f (patch)
tree29bef174d1e5da39cf6f566e8fa7b197a75c1b4d /src
parent404cf74332b4bee55015bfdc6ca3772c99d03f6c (diff)
check the maximum volume of all sink inputs instead of the average volume to avoid digital amplification in favour of attenuation
Diffstat (limited to 'src')
-rw-r--r--src/modules/module-flat-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-flat-volume.c b/src/modules/module-flat-volume.c
index cd830c0f..02e3ed13 100644
--- a/src/modules/module-flat-volume.c
+++ b/src/modules/module-flat-volume.c
@@ -87,7 +87,7 @@ static void process_input_volume_change(
if (this && this == i)
continue;
- if (pa_cvolume_avg(&i->virtual_volume) > pa_cvolume_avg(&max_volume)) {
+ if (pa_cvolume_max(&i->virtual_volume) > pa_cvolume_max(&max_volume)) {
max_volume = i->virtual_volume;
pa_cvolume_remap(&max_volume, &i->channel_map, &sink->channel_map);
}