From b6fc57a299315f649d6cfc3248d28965364459a6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 18 Jun 2026 10:58:52 +0200 Subject: [PATCH] mixer-dsp: only ramp down when io was removed Only ramp down when the IO was removed. We don't want to ramp down because there was no buffer because of an xrun, because after the ramp down, the port is removed from the mix ports and stays silent. --- spa/plugins/audiomixer/mixer-dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/audiomixer/mixer-dsp.c b/spa/plugins/audiomixer/mixer-dsp.c index 9ad4a69a0..d5e23b295 100644 --- a/spa/plugins/audiomixer/mixer-dsp.c +++ b/spa/plugins/audiomixer/mixer-dsp.c @@ -933,7 +933,7 @@ static int impl_node_process(void *object) if (size >= sizeof(float)) inport->history[0] = s[size/sizeof(float)-1]; inio->status = SPA_STATUS_NEED_DATA; - } else if (inport->ramp_pos > 0) { + } else if (inio == NULL) { /* removed port, ramp down */ struct ramp_info *ri = &ramps[n_ramps++]; ri->port = inport;