From 637993a7938063ec5e7cc76000b08218faa088e0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 22 Nov 2014 13:16:24 -0800 Subject: [PATCH] Only update the necessary channels --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 493240ac..3edd6c40 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -146,7 +146,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans) for(i = 0;i < num_chans;i++) { MixGains *gains = params->Gains[i]; - for(j = 0;j < MAX_OUTPUT_CHANNELS;j++) + for(j = 0;j < params->NumChannels;j++) { gains[j].Current = gains[j].Target; gains[j].Step = 1.0f; @@ -160,7 +160,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans) for(i = 0;i < num_chans;i++) { MixGains *gains = params->Gains[i]; - for(j = 0;j < MAX_OUTPUT_CHANNELS;j++) + for(j = 0;j < params->NumChannels;j++) { ALfloat cur = maxf(gains[j].Current, FLT_EPSILON); ALfloat trg = maxf(gains[j].Target, FLT_EPSILON); -- 2.11.4.GIT