summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-10-09 01:07:02 -0700
committerChris Robinson <[email protected]>2008-10-09 01:07:02 -0700
commitc8cd1933469a280e113b23347d2f0e80ebd160c4 (patch)
tree60f11314f140853525503b4904970bd542c68911 /Alc
parentbe292e5f0b71745ce4a5ce668fae2529a3fdd084 (diff)
The wet path should be silent if no effect is set on the slot
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index c85ddb9e..adf8fd5e 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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