diff options
author | Chris Robinson <[email protected]> | 2022-11-24 22:00:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-11-24 22:00:02 -0800 |
commit | 9bf67c75aa78ed3d53e8f31edb7e31707cc1399f (patch) | |
tree | c122692e36c5ba17216ff247330a6654f2994a65 /alc/effects/pshifter.cpp | |
parent | cbcb14076016921ab90c386eba073d96c761c5c6 (diff) |
Use complex floats for convolution reverb FFTs
Diffstat (limited to 'alc/effects/pshifter.cpp')
-rw-r--r-- | alc/effects/pshifter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<const Float mFftBuffer[k] = mFIFO[src] * HannWindow[k]; for(size_t src{0u}, k{STFT_SIZE-mPos};src < mPos;++src,++k) mFftBuffer[k] = mFIFO[src] * HannWindow[k]; - forward_fft(mFftBuffer); + forward_fft<double>(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<const Float /* Apply an inverse FFT to get the time-domain siganl, and accumulate * for the output with windowing. */ - inverse_fft(mFftBuffer); + inverse_fft<double>(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) |