aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcEcho.c6
-rw-r--r--Alc/alcReverb.c9
2 files changed, 0 insertions, 15 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c
index ea4af8dd..69bbd386 100644
--- a/Alc/alcEcho.c
+++ b/Alc/alcEcho.c
@@ -81,10 +81,7 @@ ALboolean EchoDeviceUpdate(ALeffectState *effect, ALCdevice *Device)
temp = realloc(state->SampleBuffer, maxlen * sizeof(ALfloat));
if(!temp)
- {
- alSetError(AL_OUT_OF_MEMORY);
return AL_FALSE;
- }
state->SampleBuffer = temp;
state->BufferLength = maxlen;
}
@@ -165,10 +162,7 @@ ALeffectState *EchoCreate(void)
state = malloc(sizeof(*state));
if(!state)
- {
- alSetError(AL_OUT_OF_MEMORY);
return NULL;
- }
state->state.Destroy = EchoDestroy;
state->state.DeviceUpdate = EchoDeviceUpdate;
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c
index 318a8401..a2b888d9 100644
--- a/Alc/alcReverb.c
+++ b/Alc/alcReverb.c
@@ -985,10 +985,7 @@ static ALboolean VerbDeviceUpdate(ALeffectState *effect, ALCdevice *Device)
// Allocate the delay lines.
if(!AllocLines(AL_FALSE, frequency, State))
- {
- alSetError(AL_OUT_OF_MEMORY);
return AL_FALSE;
- }
// The early reflection and late all-pass filter line lengths are static,
// so their offsets only need to be calculated once.
@@ -1013,10 +1010,7 @@ static ALboolean EAXVerbDeviceUpdate(ALeffectState *effect, ALCdevice *Device)
// Allocate the delay lines.
if(!AllocLines(AL_TRUE, frequency, State))
- {
- alSetError(AL_OUT_OF_MEMORY);
return AL_FALSE;
- }
// Calculate the modulation filter coefficient. Notice that the exponent
// is calculated given the current sample rate. This ensures that the
@@ -1225,10 +1219,7 @@ ALeffectState *VerbCreate(void)
State = malloc(sizeof(ALverbState));
if(!State)
- {
- alSetError(AL_OUT_OF_MEMORY);
return NULL;
- }
State->state.Destroy = VerbDestroy;
State->state.DeviceUpdate = VerbDeviceUpdate;