aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer/hrtf_inc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mixer/hrtf_inc.cpp')
-rw-r--r--Alc/mixer/hrtf_inc.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Alc/mixer/hrtf_inc.cpp b/Alc/mixer/hrtf_inc.cpp
index 22715abc..d811bd61 100644
--- a/Alc/mixer/hrtf_inc.cpp
+++ b/Alc/mixer/hrtf_inc.cpp
@@ -107,19 +107,16 @@ void MixDirectHrtf(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
const ALfloat (*RESTRICT Coeffs)[2], ALfloat (*RESTRICT Values)[2],
ALsizei BufferSize)
{
- ALfloat insample;
- ALsizei i;
-
ASSUME(IrSize >= 4);
ASSUME(BufferSize > 0);
- for(i = 0;i < BufferSize;i++)
+ for(ALsizei i{0};i < BufferSize;i++)
{
Values[(Offset+IrSize)&HRIR_MASK][0] = 0.0f;
Values[(Offset+IrSize)&HRIR_MASK][1] = 0.0f;
Offset++;
- insample = *(data++);
+ const ALfloat insample{*(data++)};
ApplyCoeffs(Offset, Values, IrSize, Coeffs, insample, insample);
*(LeftOut++) += Values[Offset&HRIR_MASK][0];
*(RightOut++) += Values[Offset&HRIR_MASK][1];