diff options
author | Chris Robinson <[email protected]> | 2022-12-14 16:23:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-14 16:23:10 -0800 |
commit | 42090e93719748675384cc6ec9106fb39f869920 (patch) | |
tree | 70715c1514d2db153ca66fbc26ed30302eb54fd6 /alc/effects/pshifter.cpp | |
parent | 7c3f201f2625e37807c608e718b190cc48107b9c (diff) |
Avoid manually specifying FFT template parameters
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 f8409292..0156d777 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<double>(mFftBuffer); + forward_fft(al::as_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<const Float /* Apply an inverse FFT to get the time-domain siganl, and accumulate * for the output with windowing. */ - inverse_fft<double>(mFftBuffer); + inverse_fft(al::as_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) |