aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-05-29 13:30:50 -0700
committerChris Robinson <[email protected]>2009-05-29 13:30:50 -0700
commit74dc7090fdf4084fae1824986e382fde4535ae7c (patch)
tree7aa7485bba3a17a9449c65432af7a360cb879d8d /Alc/ALu.c
parente12ac95d6926c0b576775d2817f2e829c153947b (diff)
Don't expose effect-specific structures
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;