From 9ce182228d8be25130f3f18b2d999a9612fb18f9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 22 Mar 2020 08:51:06 -0700 Subject: Avoid some pre-C++14 workarounds --- alc/effects/pshifter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'alc/effects/pshifter.cpp') diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index d7ba072e..7b00a87e 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -50,10 +50,9 @@ using complex_d = std::complex; #define FIFO_LATENCY (STFT_STEP * (OVERSAMP-1)) /* Define a Hann window, used to filter the STFT input and output. */ -/* Making this constexpr seems to require C++14. */ -std::array InitHannWindow() +std::array InitHannWindow() { - std::array ret; + std::array ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ for(size_t i{0};i < STFT_SIZE>>1;i++) { @@ -63,7 +62,7 @@ std::array InitHannWindow() } return ret; } -alignas(16) const std::array HannWindow = InitHannWindow(); +alignas(16) const std::array HannWindow = InitHannWindow(); struct ALphasor { -- cgit v1.2.3