aboutsummaryrefslogtreecommitdiffstats
path: root/common/alcomplex.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 /common/alcomplex.cpp
parent9a883f50462f22474601204b0052ca9ef4fce676 (diff)
Use inline wrappers to clarify forward/inverse FFTs
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r--common/alcomplex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp
index 0af9fc98..f1d13551 100644
--- a/common/alcomplex.cpp
+++ b/common/alcomplex.cpp
@@ -51,7 +51,7 @@ void complex_fft(const al::span<std::complex<double>> buffer, const double sign)
void complex_hilbert(const al::span<std::complex<double>> buffer)
{
- complex_fft(buffer, 1.0);
+ inverse_fft(buffer);
const double inverse_size = 1.0/static_cast<double>(buffer.size());
auto bufiter = buffer.begin();
@@ -65,5 +65,5 @@ void complex_hilbert(const al::span<std::complex<double>> buffer)
std::fill(bufiter, buffer.end(), std::complex<double>{});
- complex_fft(buffer, -1.0);
+ forward_fft(buffer);
}