From 1684b2cc5f41d03966d2a8e03c739aa9933e2348 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 28 Sep 2018 16:42:22 -0700 Subject: [PATCH] Constify a couple more variables --- Alc/mastering.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/mastering.c b/Alc/mastering.c index a957066a..52813a54 100644 --- a/Alc/mastering.c +++ b/Alc/mastering.c @@ -186,12 +186,12 @@ static void GainCompressor(Compressor *Comp, const ALsizei SamplesToDo) const ALfloat attack = Comp->Attack; const ALfloat release = Comp->Release; const ALsizei index = Comp->SideChainIndex; + const ALfloat c_est = Comp->GainEstimate; + const ALfloat a_adp = Comp->AdaptCoeff; const ALfloat *restrict crestFactor = Comp->CrestFactor; ALfloat *restrict sideChain = Comp->SideChain; ALfloat postGain = Comp->PostGain; ALfloat knee = Comp->Knee; - ALfloat c_est = Comp->GainEstimate; - ALfloat a_adp = Comp->AdaptCoeff; ALfloat t_att = attack; ALfloat t_rel = release - attack; ALfloat a_att = expf(-1.0f / t_att);