aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index b36e7018..d71a511f 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -36,7 +36,6 @@
#include "alAuxEffectSlot.h"
#include "alu.h"
#include "bs2b.h"
-#include "alReverb.h"
#if defined(HAVE_STDINT_H)
#include <stdint.h>
@@ -1310,18 +1309,8 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
// effect slot processing
while(ALEffectSlot)
{
- switch(ALEffectSlot->effect.type)
- {
- case AL_EFFECT_REVERB:
- VerbProcess(ALEffectSlot->ReverbState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer);
- break;
- case AL_EFFECT_ECHO:
- EchoProcess(ALEffectSlot->EchoState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer);
- break;
- case AL_EFFECT_EAXREVERB:
- EAXVerbProcess(ALEffectSlot->ReverbState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer);
- break;
- }
+ if(ALEffectSlot->EffectState)
+ ALEffect_Process(ALEffectSlot->EffectState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer);
for(i = 0;i < SamplesToDo;i++)
ALEffectSlot->WetBuffer[i] = 0.0f;