From 2c20f2678478c2320a0236baf288baed8987b1f8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 29 May 2009 16:51:00 -0700 Subject: Apply slot gain on slot output, not input --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index afc35aaf..a7845dc3 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -749,7 +749,7 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, wetgainhf[i] *= ALSource->Send[i].WetFilter.GainHF; break; } - wetsend[i] *= ALSource->Send[i].Slot->Gain * ListenerGain; + wetsend[i] *= ListenerGain; } else { @@ -1310,7 +1310,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma while(ALEffectSlot) { if(ALEffectSlot->EffectState) - ALEffect_Process(ALEffectSlot->EffectState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer); + ALEffect_Process(ALEffectSlot->EffectState, ALEffectSlot, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer); for(i = 0;i < SamplesToDo;i++) ALEffectSlot->WetBuffer[i] = 0.0f; -- cgit v1.2.3