diff options
Diffstat (limited to 'alc/effects')
-rw-r--r-- | alc/effects/fshifter.cpp | 7 | ||||
-rw-r--r-- | alc/effects/pshifter.cpp | 7 |
2 files changed, 6 insertions, 8 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 { 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 { |