diff options
author | Chris Robinson <[email protected]> | 2009-12-06 03:59:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-06 03:59:12 -0800 |
commit | 8138446b8c8403876a86c5759bed1f0839043c68 (patch) | |
tree | 226e6949d089ce359b9f69c82ffdb6c2b9753965 /Alc/ALu.c | |
parent | 58ecc7fad40d7ba46ba660e1666bfbe62e10d37c (diff) |
Restrict setting some wet path values to active sends only
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |