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/fshifter.cpp | |
parent | 040309b9f402f9629e1a553665ce789bd530dec2 (diff) |
Avoid some pre-C++14 workarounds
Diffstat (limited to 'alc/effects/fshifter.cpp')
-rw-r--r-- | alc/effects/fshifter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/effects/fshifter.cpp b/alc/effects/fshifter.cpp index 1b935047..b375724b 100644 --- a/alc/effects/fshifter.cpp +++ b/alc/effects/fshifter.cpp @@ -44,10 +44,9 @@ using complex_d = std::complex<double>; #define FIFO_LATENCY (HIL_STEP * (OVERSAMP-1)) /* Define a Hann window, used to filter the HIL input and output. */ -/* Making this constexpr seems to require C++14. */ -std::array<ALdouble,HIL_SIZE> InitHannWindow() +std::array<double,HIL_SIZE> InitHannWindow() { - std::array<ALdouble,HIL_SIZE> ret; + std::array<double,HIL_SIZE> ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ for(size_t i{0};i < HIL_SIZE>>1;i++) { @@ -57,7 +56,7 @@ std::array<ALdouble,HIL_SIZE> InitHannWindow() } return ret; } -alignas(16) const std::array<ALdouble,HIL_SIZE> HannWindow = InitHannWindow(); +alignas(16) const std::array<double,HIL_SIZE> HannWindow = InitHannWindow(); struct FshifterState final : public EffectState { |