From fe1e046ea6bd1881793bb1941220ff9bea1c959c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 14 Sep 2011 11:55:57 -0700 Subject: Remove a couple ineffective alcSetError calls --- Alc/backends/coreaudio.c | 6 ------ 1 file changed, 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; -- cgit v1.2.3