Make sure to set the new echo sample buffer and remove an unused macro

This commit is contained in:
Chris Robinson
2009-11-18 17:34:08 -08:00
parent ea90f781ff
commit e868eef679
+1 -3
View File
@@ -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++)