Restrict setting some wet path values to active sends only

This commit is contained in:
Chris Robinson 2009-12-06 03:59:12 -08:00
parent 58ecc7fad4
commit 8138446b8c

View File

@ -581,7 +581,7 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource,
Distance = aluSqrt(aluDotproduct(Position, Position)); Distance = aluSqrt(aluDotproduct(Position, Position));
flAttenuation = 1.0f; flAttenuation = 1.0f;
for(i = 0;i < MAX_SENDS;i++) for(i = 0;i < NumSends;i++)
{ {
RoomAttenuation[i] = 1.0f; RoomAttenuation[i] = 1.0f;
@ -668,7 +668,7 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource,
absorb = pow(10.0, absorb/20.0); absorb = pow(10.0, absorb/20.0);
} }
DryGainHF *= absorb; DryGainHF *= absorb;
for(i = 0;i < MAX_SENDS;i++) for(i = 0;i < NumSends;i++)
WetGainHF[i] *= absorb; WetGainHF[i] *= absorb;
} }