diff options
author | Chris Robinson <[email protected]> | 2020-09-13 04:18:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-09-13 04:18:40 -0700 |
commit | 0974b6b47c55b58989dde329160474ac0d58140a (patch) | |
tree | fe71cdf078c10dda503f5991ad1020956a0a5936 /alc/effects/pshifter.cpp | |
parent | 9a883f50462f22474601204b0052ca9ef4fce676 (diff) |
Use inline wrappers to clarify forward/inverse 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 01d24333..d923e376 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -169,7 +169,7 @@ void PshifterState::process(const size_t samplesToDo, const al::span<const Float */ for(size_t k{0u};k < STFT_SIZE;k++) mFftBuffer[k] = mFIFO[k] * HannWindow[k]; - complex_fft(mFftBuffer, -1.0); + forward_fft(mFftBuffer); /* Analyze the obtained data. Since the real FFT is symmetric, only * STFT_HALF_SIZE+1 samples are needed. @@ -232,7 +232,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. */ - complex_fft(mFftBuffer, 1.0); + inverse_fft(mFftBuffer); for(size_t k{0u};k < STFT_SIZE;k++) mOutputAccum[k] += HannWindow[k]*mFftBuffer[k].real() * (2.0/STFT_SIZE/OVERSAMP); |