aboutsummaryrefslogtreecommitdiffstats
path: root/alc/uhjfilter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-13 04:18:40 -0700
committerChris Robinson <[email protected]>2020-09-13 04:18:40 -0700
commit0974b6b47c55b58989dde329160474ac0d58140a (patch)
treefe71cdf078c10dda503f5991ad1020956a0a5936 /alc/uhjfilter.cpp
parent9a883f50462f22474601204b0052ca9ef4fce676 (diff)
Use inline wrappers to clarify forward/inverse FFTs
Diffstat (limited to 'alc/uhjfilter.cpp')
-rw-r--r--alc/uhjfilter.cpp2
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?