From e51295c79edffb7dd2bd4fe6211a193c08735b32 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 19 Aug 2011 03:59:57 -0700 Subject: [PATCH] Don't scale the wet send by the number of channels Each channel should be treated as a distinct audio source, so multiple channels should act as multiple sources. --- Alc/ALu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 02dea03..18b420f 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -327,8 +327,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) for(i = 0;i < NumSends;i++) { ALSource->Params.Send[i].Slot = ALSource->Send[i].Slot; - ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain / - ALSource->NumChannels; + ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain; } /* Update filter coefficients. Calculations based on the I3DL2