mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: also clamp monitor volume to min/max
When we set a min/max value, also clamp the monitor volume to it. Fixes #3962
This commit is contained in:
parent
bf148d59cd
commit
17a2c21573
1 changed files with 3 additions and 0 deletions
|
|
@ -3039,6 +3039,9 @@ static int impl_node_process(void *object)
|
|||
volume *= this->props.channel.mute ? 0.0f :
|
||||
this->props.channel.volumes[remap];
|
||||
|
||||
volume = SPA_CLAMPF(volume, this->props.min_volume,
|
||||
this->props.max_volume);
|
||||
|
||||
mon_max = SPA_MIN(bd->maxsize / port->stride, max_in);
|
||||
|
||||
volume_process(&this->volume, bd->data, src_datas[remap],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue