diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mixer/hrtfbase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer/hrtfbase.h b/Alc/mixer/hrtfbase.h index ee70f35f..52d939f7 100644 --- a/Alc/mixer/hrtfbase.h +++ b/Alc/mixer/hrtfbase.h @@ -78,9 +78,9 @@ inline void MixHrtfBlendBase(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightO const HrtfParams *oldparams, MixHrtfParams *newparams, HrtfState *hrtfstate, const ALsizei BufferSize) { - const auto OldCoeffs = oldparams->Coeffs; + const auto &OldCoeffs = oldparams->Coeffs; const ALfloat oldGain{oldparams->Gain}; - const ALfloat oldGainStep{-oldGain / (ALfloat)BufferSize}; + const ALfloat oldGainStep{-oldGain / static_cast<ALfloat>(BufferSize)}; const auto &NewCoeffs = *newparams->Coeffs; const ALfloat newGainStep{newparams->GainStep}; ALfloat stepcount{0.0f}; |