Constify a couple more variables

This commit is contained in:
Chris Robinson
2018-09-28 16:42:22 -07:00
parent 1dee902a5f
commit 1684b2cc5f
+2 -2
View File
@@ -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);