aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-01-23 06:29:03 -0800
committerChris Robinson <[email protected]>2012-01-23 06:29:03 -0800
commit86ef115e21cf93d08b2273278b25cae702a86024 (patch)
tree01b5269c1f7ac76dc36e0b1c28cc10d662b9eb75 /Alc/ALu.c
parent1dd8aa9b6ff21a6282c67107d6985db69809be1d (diff)
Set the source's slot send parameter to NULL if it's the AL_EFFECT_NULL type
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 5b5b6d5c..96a46aeb 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -297,6 +297,8 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
if(!Slot && i == 0)
Slot = Device->DefaultSlot;
+ if(Slot && Slot->effect.type == AL_EFFECT_NULL)
+ Slot = NULL;
ALSource->Params.Send[i].Slot = Slot;
ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain;
}
@@ -400,6 +402,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
Slot = Device->DefaultSlot;
if(!Slot || Slot->effect.type == AL_EFFECT_NULL)
{
+ Slot = NULL;
RoomRolloff[i] = 0.0f;
DecayDistance[i] = 0.0f;
RoomAirAbsorption[i] = 1.0f;