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:
Wim Taymans 2024-04-15 16:28:24 +02:00
parent bf148d59cd
commit 17a2c21573

View file

@ -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],