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/reverb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'alc/effects/reverb.cpp') diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index 727c8352..5edea965 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -482,7 +482,7 @@ struct ReverbState final : public EffectState { void lateFaded(const size_t offset, const size_t todo, const ALfloat fade, const ALfloat fadeStep); - 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; @@ -559,13 +559,13 @@ bool ReverbState::allocLines(const ALfloat frequency) return true; } -ALboolean ReverbState::deviceUpdate(const ALCdevice *device) +bool ReverbState::deviceUpdate(const ALCdevice *device) { const auto frequency = static_cast(device->Frequency); /* Allocate the delay lines. */ if(!allocLines(frequency)) - return AL_FALSE; + return false; const ALfloat multiplier{CalcDelayLengthMult(AL_EAXREVERB_MAX_DENSITY)}; @@ -625,7 +625,7 @@ ALboolean ReverbState::deviceUpdate(const ALCdevice *device) std::fill(mAmbiSplitter[0].begin()+1, mAmbiSplitter[0].end(), mAmbiSplitter[0][0]); std::fill(mAmbiSplitter[1].begin(), mAmbiSplitter[1].end(), mAmbiSplitter[0][0]); - return AL_TRUE; + return true; } /************************************** -- cgit v1.2.3