From eb2c7e84b67e23c2a84cf9b2f8db6da2a1d51a2f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 21 Dec 2023 01:58:55 -0800 Subject: Use a bool for a 0/1 value --- alc/effects/reverb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'alc') diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index cc5768e2..5eefdfbf 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -551,7 +551,7 @@ struct ReverbState final : public EffectState { Normal, }; PipelineState mPipelineState{DeviceClear}; - uint8_t mCurrentPipeline{0}; + bool mCurrentPipeline{false}; std::array mPipelines; @@ -1235,7 +1235,7 @@ void ReverbState::update(const ContextBase *Context, const EffectSlot *Slot, mParams.LFReference = props->Reverb.LFReference; mPipelineState = (mPipelineState != DeviceClear) ? StartFade : Normal; - mCurrentPipeline ^= 1; + mCurrentPipeline = !mCurrentPipeline; } auto &pipeline = mPipelines[mCurrentPipeline]; @@ -1671,7 +1671,7 @@ void ReverbState::process(const size_t samplesToDo, const al::span 0); - auto &oldpipeline = mPipelines[mCurrentPipeline^1]; + auto &oldpipeline = mPipelines[!mCurrentPipeline]; auto &pipeline = mPipelines[mCurrentPipeline]; if(mPipelineState >= Fading) @@ -1781,7 +1781,7 @@ void ReverbState::process(const size_t samplesToDo, const al::span