mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
check the maximum volume of all sink inputs instead of the average volume to avoid digital amplification in favour of attenuation
This commit is contained in:
parent
404cf74332
commit
b048ae9f78
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ static void process_input_volume_change(
|
||||||
if (this && this == i)
|
if (this && this == i)
|
||||||
continue;
|
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;
|
max_volume = i->virtual_volume;
|
||||||
pa_cvolume_remap(&max_volume, &i->channel_map, &sink->channel_map);
|
pa_cvolume_remap(&max_volume, &i->channel_map, &sink->channel_map);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue