aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-18 17:34:08 -0800
committerChris Robinson <[email protected]>2009-11-18 17:34:08 -0800
commite868eef67991f2d858ba4f11836789face0245ad (patch)
treed15d1b9474a1b89f3a39fe6fa344ce41b096ddf9 /Alc
parentea90f781ff1ddce9573ac93757f80367b515db71 (diff)
Make sure to set the new echo sample buffer and remove an unused macro
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcEcho.c4
1 files changed, 1 insertions, 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++)