diff options
author | Chris Robinson <[email protected]> | 2011-09-14 11:55:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-14 11:55:57 -0700 |
commit | fe1e046ea6bd1881793bb1941220ff9bea1c959c (patch) | |
tree | 06c9fb41d78417bda03deb880e3e07682c511487 /Alc/backends | |
parent | 2171aaa35c2c8487107699e183519f8aa3a79e71 (diff) |
Remove a couple ineffective alcSetError calls
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/coreaudio.c | 6 |
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; |