From 9bf67c75aa78ed3d53e8f31edb7e31707cc1399f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 24 Nov 2022 22:00:02 -0800 Subject: Use complex floats for convolution reverb FFTs --- alc/effects/pshifter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/pshifter.cpp') diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index b1f6d859..f8409292 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -184,7 +184,7 @@ void PshifterState::process(const size_t samplesToDo, const al::span(mFftBuffer); /* Analyze the obtained data. Since the real FFT is symmetric, only * STFT_HALF_SIZE+1 samples are needed. @@ -243,7 +243,7 @@ void PshifterState::process(const size_t samplesToDo, const al::span(mFftBuffer); for(size_t dst{mPos}, k{0u};dst < STFT_SIZE;++dst,++k) mOutputAccum[dst] += HannWindow[k]*mFftBuffer[k].real() * (4.0/OVERSAMP/STFT_SIZE); for(size_t dst{0u}, k{STFT_SIZE-mPos};dst < mPos;++dst,++k) -- cgit v1.2.3