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 2379e83283
commit b97c6e2eac

View file

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