From 6b1f3222201fd0072e46e1d95aa00abf95d32cec Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 Feb 2016 13:30:03 -0800 Subject: Only calculate steps for the used coefficients --- Alc/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') 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; -- cgit v1.2.3