summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/coreaudio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Alc/backends/coreaudio.c b/Alc/backends/coreaudio.c
index 8cb50edf..2d9ab7a8 100644
--- a/Alc/backends/coreaudio.c
+++ b/Alc/backends/coreaudio.c
@@ -575,17 +575,11 @@ static ALCenum ca_open_capture(ALCdevice *device, const ALCchar *deviceName)
// Allocate buffer for the AudioUnit output
data->bufferList = allocate_buffer_list(outputFormat.mChannelsPerFrame, device->UpdateSize * data->frameSize * data->sampleRateRatio);
if(data->bufferList == NULL)
- {
- alcSetError(device, ALC_OUT_OF_MEMORY);
goto error;
- }
data->ring = CreateRingBuffer(data->frameSize, (device->UpdateSize * data->sampleRateRatio) * device->NumUpdates);
if(data->ring == NULL)
- {
- alcSetError(device, ALC_OUT_OF_MEMORY);
goto error;
- }
return ALC_NO_ERROR;