The wet path should be silent if no effect is set on the slot

This commit is contained in:
Chris Robinson
2008-10-09 01:07:02 -07:00
parent be292e5f0b
commit c8cd193346
+2 -1
View File
@@ -452,7 +452,8 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
else
pitch[0] = ALSource->flPitch;
if(ALSource->Send[0].Slot)
if(ALSource->Send[0].Slot &&
ALSource->Send[0].Slot->effect.type != AL_EFFECT_NULL)
{
// If the slot's auxilliary send auto is off, the data sent to the
// effect slot is the same as the dry path, sans filter effects