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.
This commit is contained in:
Chris Robinson 2011-08-19 03:59:57 -07:00
parent b40aa8636b
commit e51295c79e

View File

@ -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