diff options
author | Chris Robinson <[email protected]> | 2010-05-09 22:06:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-09 22:06:10 -0700 |
commit | 099c2f3593074c42b736eeb325f8fb259b352dcf (patch) | |
tree | 3a53aa81d80bbb60708455bbda07b8f9d7b0e7b2 | |
parent | 0378422fcb4badba0a0dcdce503dcbe9d253f9a8 (diff) |
Use a simple loop to set multi-channel dry gains
-rw-r--r-- | Alc/ALu.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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++) { |