aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-02-14 13:30:03 -0800
committerChris Robinson <[email protected]>2016-02-14 13:30:03 -0800
commit6b1f3222201fd0072e46e1d95aa00abf95d32cec (patch)
treea06e245a80c52e41f32dd402cb6d63fdf7fd8796 /Alc/mixer.c
parentecdc93f3ca3b12ab0b226864cf8cd579140f1484 (diff)
Only calculate steps for the used coefficients
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 6b5272ea..779d69e0 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -618,7 +618,7 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam
{
ALfloat coeffdiff;
ALint delaydiff;
- for(j = 0;j < HRIR_LENGTH;j++)
+ for(j = 0;j < IrSize;j++)
{
coeffdiff = parms->Hrtf[chan].Target.Coeffs[j][0] - parms->Hrtf[chan].Current.Coeffs[j][0];
hrtfparams.Steps.Coeffs[j][0] = coeffdiff * Delta;