mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
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:
parent
f210d93ea6
commit
5f9811d085
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue