aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-20 22:16:28 -0800
committerChris Robinson <[email protected]>2008-01-20 22:16:28 -0800
commit9a5e892cad7b71fd38ebfede9c923f2804806bd7 (patch)
treef1357aa4847183f981b4ce4401a75023dcd86edf /Alc/ALu.c
parent03173626622d277f6cdcdc016e29733ca37d4b26 (diff)
Small formatting updates
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;
}