diff options
author | Chris Robinson <[email protected]> | 2019-03-10 14:31:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-10 14:31:46 -0700 |
commit | d99d2a400a3f185b4ce9bd2d63cfa9b263c75b12 (patch) | |
tree | 2c2ce4150db4a0ef5dca9b43d3b51206802a9239 /Alc/mixer | |
parent | 80e55b87ed95b44e92ff348026d53c33273929f9 (diff) |
Don't copy old coeffs in MixHrtfBlendBase
Diffstat (limited to 'Alc/mixer')
-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}; |