convolver: clear the input buffer

The last part of the buffer needs to be 0 filled or else we get noise
from the FFT.
This commit is contained in:
Wim Taymans 2026-04-17 12:47:32 +02:00
parent f210d93ea6
commit 5f9811d085

View file

@ -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);
}