From e868eef67991f2d858ba4f11836789face0245ad Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 18 Nov 2009 17:34:08 -0800 Subject: [PATCH] Make sure to set the new echo sample buffer and remove an unused macro --- Alc/alcEcho.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index 0c0f19ed..359dfbba 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -29,9 +29,6 @@ #include "alError.h" #include "alu.h" -// Just a soft maximum. Being higher will cause EchoUpdate to reallocate the -// sample buffer which may cause an abort if realloc fails -#define MAX_ECHO_FREQ 192000 typedef struct ALechoState { // Must be first in all effects! @@ -106,6 +103,7 @@ ALboolean EchoDeviceUpdate(ALeffectState *effect, ALCdevice *Device) alSetError(AL_OUT_OF_MEMORY); return AL_FALSE; } + state->SampleBuffer = temp; state->BufferLength = maxlen; } for(i = 0;i < state->BufferLength;i++)