diff options
author | Chris Robinson <[email protected]> | 2009-05-29 13:30:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-05-29 13:30:50 -0700 |
commit | 74dc7090fdf4084fae1824986e382fde4535ae7c (patch) | |
tree | 7aa7485bba3a17a9449c65432af7a360cb879d8d /Alc/ALu.c | |
parent | e12ac95d6926c0b576775d2817f2e829c153947b (diff) |
Don't expose effect-specific structures
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -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; |