aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-09 22:06:10 -0700
committerChris Robinson <[email protected]>2010-05-09 22:06:10 -0700
commit099c2f3593074c42b736eeb325f8fb259b352dcf (patch)
tree3a53aa81d80bbb60708455bbda07b8f9d7b0e7b2
parent0378422fcb4badba0a0dcdce503dcbe9d253f9a8 (diff)
Use a simple loop to set multi-channel dry gains
-rw-r--r--Alc/ALu.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index db5a9eb7..1f96d5f7 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -480,15 +480,8 @@ static ALvoid CalcNonAttnSourceParams(const ALCcontext *ALContext, ALsource *ALS
break;
}
- ALSource->Params.DryGains[FRONT_LEFT] = DryGain * ListenerGain;
- ALSource->Params.DryGains[FRONT_RIGHT] = DryGain * ListenerGain;
- ALSource->Params.DryGains[SIDE_LEFT] = DryGain * ListenerGain;
- ALSource->Params.DryGains[SIDE_RIGHT] = DryGain * ListenerGain;
- ALSource->Params.DryGains[BACK_LEFT] = DryGain * ListenerGain;
- ALSource->Params.DryGains[BACK_RIGHT] = DryGain * ListenerGain;
- ALSource->Params.DryGains[FRONT_CENTER] = DryGain * ListenerGain;
- ALSource->Params.DryGains[BACK_CENTER] = DryGain * ListenerGain;
- ALSource->Params.DryGains[LFE] = DryGain * ListenerGain;
+ for(i = 0;i < OUTPUTCHANNELS;i++)
+ ALSource->Params.DryGains[i] = DryGain * ListenerGain;
for(i = 0;i < NumSends;i++)
{