From 5f9811d085cbdae2eb6ac183586f9a72361ee424 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 17 Apr 2026 12:47:32 +0200 Subject: [PATCH] convolver: clear the input buffer The last part of the buffer needs to be 0 filled or else we get noise from the FFT. --- spa/plugins/filter-graph/convolver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/filter-graph/convolver.c b/spa/plugins/filter-graph/convolver.c index 26ea5fa33..eea5c763f 100644 --- a/spa/plugins/filter-graph/convolver.c +++ b/spa/plugins/filter-graph/convolver.c @@ -237,6 +237,7 @@ void convolver_reset(struct convolver *conv) partition_reset(dsp, conv->headPartition); if (conv->tailPartition) { partition_reset(dsp, conv->tailPartition); + spa_fga_dsp_fft_memclear(dsp, conv->tailInput, 2 * conv->tailBlockSize, true); spa_fga_dsp_fft_memclear(dsp, conv->tailOutput, conv->tailBlockSize, true); spa_fga_dsp_fft_memclear(dsp, conv->tailPrecalculated, conv->tailBlockSize, true); }