From 55c790c9ff28acad5e5da365bee8a6f693d21796 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 Apr 2009 16:01:10 -0700 Subject: Add the Echo effect --- Alc/ALu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index ea2f6526..babccb8e 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1383,6 +1383,8 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma { if(ALEffectSlot->effect.type == AL_EFFECT_REVERB) VerbProcess(ALEffectSlot->ReverbState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer); + else if(ALEffectSlot->effect.type == AL_EFFECT_ECHO) + EchoProcess(ALEffectSlot->EchoState, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer); for(i = 0;i < SamplesToDo;i++) ALEffectSlot->WetBuffer[i] = 0.0f; -- cgit v1.2.3