check the maximum volume of all sink inputs instead of the average volume to avoid...
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Oct 2008 22:13:53 +0000 (00:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Oct 2008 22:13:53 +0000 (00:13 +0200)
src/modules/module-flat-volume.c

index cd830c0..02e3ed1 100644 (file)
@@ -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);
         }