diff options
author | Chris Robinson <[email protected]> | 2020-03-22 08:51:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-03-22 08:51:06 -0700 |
commit | 9ce182228d8be25130f3f18b2d999a9612fb18f9 (patch) | |
tree | 7b45245f55a4e77dd08d6b13faa67916f5caa285 /alc/effects/pshifter.cpp | |
parent | 040309b9f402f9629e1a553665ce789bd530dec2 (diff) |
Avoid some pre-C++14 workarounds
Diffstat (limited to 'alc/effects/pshifter.cpp')
-rw-r--r-- | alc/effects/pshifter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<double>; #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<ALdouble,STFT_SIZE> InitHannWindow() +std::array<double,STFT_SIZE> InitHannWindow() { - std::array<ALdouble,STFT_SIZE> ret; + std::array<double,STFT_SIZE> 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<ALdouble,STFT_SIZE> InitHannWindow() } return ret; } -alignas(16) const std::array<ALdouble,STFT_SIZE> HannWindow = InitHannWindow(); +alignas(16) const std::array<double,STFT_SIZE> HannWindow = InitHannWindow(); struct ALphasor { |