From 8138446b8c8403876a86c5759bed1f0839043c68 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 6 Dec 2009 03:59:12 -0800 Subject: [PATCH] Restrict setting some wet path values to active sends only --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 36cc4046..2b736778 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -581,7 +581,7 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource, Distance = aluSqrt(aluDotproduct(Position, Position)); flAttenuation = 1.0f; - for(i = 0;i < MAX_SENDS;i++) + for(i = 0;i < NumSends;i++) { RoomAttenuation[i] = 1.0f; @@ -668,7 +668,7 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource, absorb = pow(10.0, absorb/20.0); } DryGainHF *= absorb; - for(i = 0;i < MAX_SENDS;i++) + for(i = 0;i < NumSends;i++) WetGainHF[i] *= absorb; } -- 2.11.4.GIT