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/uhjfilter.cpp | |
parent | 9a883f50462f22474601204b0052ca9ef4fce676 (diff) |
Use inline wrappers to clarify forward/inverse FFTs
Diffstat (limited to 'alc/uhjfilter.cpp')
-rw-r--r-- | alc/uhjfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/uhjfilter.cpp b/alc/uhjfilter.cpp index 9c0692c4..522b6bb7 100644 --- a/alc/uhjfilter.cpp +++ b/alc/uhjfilter.cpp @@ -59,7 +59,7 @@ std::array<float,Uhj2Encoder::sFilterSize> GenerateFilter() fftBuffer[half_size] = c0; for(size_t i{half_size+1};i < fft_size;++i) fftBuffer[i] = std::conj(fftBuffer[fft_size - i]); - complex_fft(fftBuffer, 1.0); + inverse_fft(fftBuffer); /* Reverse and truncate the filter to a usable size, and store only the * non-0 terms. Should this be windowed? |