aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 47fa03d4..1d202f54 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -627,6 +627,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
while(size > 0)
{
//Setup variables
+ ALEffectSlot = (ALContext ? ALContext->AuxiliaryEffectSlot : NULL);
ALSource = (ALContext ? ALContext->Source : NULL);
SamplesToDo = min(size, BUFFERSIZE);
@@ -895,7 +896,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
ALSource = ALSource->next;
}
- ALEffectSlot = (ALContext ? ALContext->AuxiliaryEffectSlot : NULL);
+ // effect slot processing
while(ALEffectSlot)
{
if(ALEffectSlot->effect.type == AL_EFFECT_REVERB)
@@ -947,6 +948,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
ALEffectSlot->ReverbReflectPos = ReflectPos;
ALEffectSlot->LastDecaySample = LastDecaySample;
}
+
ALEffectSlot = ALEffectSlot->next;
}