From 6c02fd663a8bb5cd07d84de84cabf383c9e6643a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 5 Feb 2021 17:41:56 +0100 Subject: [PATCH] merger: handle monitor mute as well --- spa/plugins/audioconvert/merger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/merger.c b/spa/plugins/audioconvert/merger.c index 2b6873af3..372ce6ff2 100644 --- a/spa/plugins/audioconvert/merger.c +++ b/spa/plugins/audioconvert/merger.c @@ -1227,9 +1227,9 @@ static int impl_node_process(void *object) for (i = 0; i < this->monitor_count; i++) { float volume; - volume = this->props.monitor_volumes[i]; + volume = this->props.monitor_mute ? 0.0f : this->props.monitor_volumes[i]; if (this->monitor_channel_volumes) - volume *= this->props.channel_volumes[i]; + volume *= this->props.mute ? 0.0f : this->props.channel_volumes[i]; handle_monitor(this, src_datas[i], volume, n_samples, GET_OUT_PORT(this, i + 1));