From 0974b6b47c55b58989dde329160474ac0d58140a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 13 Sep 2020 04:18:40 -0700 Subject: Use inline wrappers to clarify forward/inverse FFTs --- common/alcomplex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/alcomplex.cpp') 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> buffer, const double sign) void complex_hilbert(const al::span> buffer) { - complex_fft(buffer, 1.0); + inverse_fft(buffer); const double inverse_size = 1.0/static_cast(buffer.size()); auto bufiter = buffer.begin(); @@ -65,5 +65,5 @@ void complex_hilbert(const al::span> buffer) std::fill(bufiter, buffer.end(), std::complex{}); - complex_fft(buffer, -1.0); + forward_fft(buffer); } -- cgit v1.2.3