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
2379e83283
commit
b97c6e2eac
1 changed files with 3 additions and 0 deletions
|
|
@ -3052,6 +3052,9 @@ static int impl_node_process(void *object)
|
||||||
volume *= this->props.channel.mute ? 0.0f :
|
volume *= this->props.channel.mute ? 0.0f :
|
||||||
this->props.channel.volumes[remap];
|
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);
|
mon_max = SPA_MIN(bd->maxsize / port->stride, max_in);
|
||||||
|
|
||||||
volume_process(&this->volume, bd->data, src_datas[remap],
|
volume_process(&this->volume, bd->data, src_datas[remap],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue