From 504745abec35c4718833cd7c7ed8db3b242e0aa2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Mar 2020 15:03:38 -0700 Subject: Use a standard bool instead of ALboolean --- alc/effects/pshifter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'alc/effects/pshifter.cpp') diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index 993c26e7..f433ec46 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -53,7 +53,7 @@ using complex_d = std::complex; std::array InitHannWindow() { std::array ret; - /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ + /* Create lookup table of the Hann window for the desired size, i.e. STFT_SIZE */ for(size_t i{0};i < STFT_SIZE>>1;i++) { constexpr double scale{al::MathDefs::Pi() / double{STFT_SIZE-1}}; @@ -96,14 +96,14 @@ struct PshifterState final : public EffectState { float mTargetGains[MAX_OUTPUT_CHANNELS]; - ALboolean deviceUpdate(const ALCdevice *device) override; + bool deviceUpdate(const ALCdevice *device) override; void update(const ALCcontext *context, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target) override; void process(const size_t samplesToDo, const al::span samplesIn, const al::span samplesOut) override; DEF_NEWDEL(PshifterState) }; -ALboolean PshifterState::deviceUpdate(const ALCdevice *device) +bool PshifterState::deviceUpdate(const ALCdevice *device) { /* (Re-)initializing parameters and clear the buffers. */ mCount = FIFO_LATENCY; @@ -122,7 +122,7 @@ ALboolean PshifterState::deviceUpdate(const ALCdevice *device) std::fill(std::begin(mCurrentGains), std::end(mCurrentGains), 0.0f); std::fill(std::begin(mTargetGains), std::end(mTargetGains), 0.0f); - return AL_TRUE; + return true; } void PshifterState::update(const ALCcontext*, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target) -- cgit v1.2.3