aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-10 14:31:46 -0700
committerChris Robinson <[email protected]>2019-03-10 14:31:46 -0700
commitd99d2a400a3f185b4ce9bd2d63cfa9b263c75b12 (patch)
tree2c2ce4150db4a0ef5dca9b43d3b51206802a9239 /Alc/mixer
parent80e55b87ed95b44e92ff348026d53c33273929f9 (diff)
Don't copy old coeffs in MixHrtfBlendBase
Diffstat (limited to 'Alc/mixer')
-rw-r--r--Alc/mixer/hrtfbase.h4
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};