aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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++)
{