diff options
author | Chris Robinson <[email protected]> | 2009-05-29 16:51:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-05-29 16:51:00 -0700 |
commit | 2c20f2678478c2320a0236baf288baed8987b1f8 (patch) | |
tree | a1183d8badad01480382a8bdd18dca87c5cb1a8d /Alc/ALu.c | |
parent | 2a21a449b4828a08780e44d17586de4ba2119f0a (diff) |
Apply slot gain on slot output, not input
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |