aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-09-28 16:42:22 -0700
committerChris Robinson <[email protected]>2018-09-28 16:42:22 -0700
commit1684b2cc5f41d03966d2a8e03c739aa9933e2348 (patch)
tree1cee7da8a93e6564adf67a9e54301353a06775bd
parent1dee902a5f5c5529d494c3d95b2ef7db63ad3eba (diff)
Constify a couple more variables
-rw-r--r--Alc/mastering.c4
1 files 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);