Remove a couple ineffective alcSetError calls

This commit is contained in:
Chris Robinson 2011-09-14 11:55:57 -07:00
parent 2171aaa35c
commit fe1e046ea6

View File

@ -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;