diff options
author | Chris Robinson <[email protected]> | 2011-07-13 01:43:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-13 01:43:00 -0700 |
commit | 17773c56449475c1d255d839b89400668f15f40f (patch) | |
tree | 8907c354b007a6ac38e5d2b8b5b1c2f7312107a0 /Alc/portaudio.c | |
parent | e1e47c6e437b58a07cc447cf212dd6ec61fdfbc0 (diff) |
Rename the ERROR macro to ERR
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r-- | Alc/portaudio.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c index 0ccfc7fd..21f43ae2 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -104,7 +104,7 @@ void *pa_load(void) if((err=Pa_Initialize()) != paNoError) { - ERROR("Pa_Initialize() returned an error: %s\n", Pa_GetErrorText(err)); + ERR("Pa_Initialize() returned an error: %s\n", Pa_GetErrorText(err)); CloseLib(pa_handle); pa_handle = NULL; return NULL; @@ -204,7 +204,7 @@ static ALCboolean pa_open_playback(ALCdevice *device, const ALCchar *deviceName) device->UpdateSize, paNoFlag, pa_callback, device); if(err != paNoError) { - ERROR("Pa_OpenStream() returned an error: %s\n", Pa_GetErrorText(err)); + ERR("Pa_OpenStream() returned an error: %s\n", Pa_GetErrorText(err)); device->ExtraData = NULL; free(data); return ALC_FALSE; @@ -216,14 +216,14 @@ static ALCboolean pa_open_playback(ALCdevice *device, const ALCchar *deviceName) { if(outParams.channelCount != 1 && outParams.channelCount != 2) { - ERROR("Unhandled channel count: %u\n", outParams.channelCount); + ERR("Unhandled channel count: %u\n", outParams.channelCount); Pa_CloseStream(data->stream); device->ExtraData = NULL; free(data); return ALC_FALSE; } if((device->Flags&DEVICE_CHANNELS_REQUEST)) - ERROR("Failed to set %s, got %u channels instead\n", DevFmtChannelsString(device->FmtChans), outParams.channelCount); + ERR("Failed to set %s, got %u channels instead\n", DevFmtChannelsString(device->FmtChans), outParams.channelCount); device->Flags &= ~DEVICE_CHANNELS_REQUEST; device->FmtChans = ((outParams.channelCount==1) ? DevFmtMono : DevFmtStereo); } @@ -238,7 +238,7 @@ static void pa_close_playback(ALCdevice *device) err = Pa_CloseStream(data->stream); if(err != paNoError) - ERROR("Error closing stream: %s\n", Pa_GetErrorText(err)); + ERR("Error closing stream: %s\n", Pa_GetErrorText(err)); free(data); device->ExtraData = NULL; @@ -254,7 +254,7 @@ static ALCboolean pa_reset_playback(ALCdevice *device) if(device->Frequency != streamInfo->sampleRate) { if((device->Flags&DEVICE_FREQUENCY_REQUEST)) - ERROR("PortAudio does not support changing sample rates (wanted %dhz, got %.1fhz)\n", device->Frequency, streamInfo->sampleRate); + ERR("PortAudio does not support changing sample rates (wanted %dhz, got %.1fhz)\n", device->Frequency, streamInfo->sampleRate); device->Flags &= ~DEVICE_FREQUENCY_REQUEST; device->Frequency = streamInfo->sampleRate; } @@ -263,7 +263,7 @@ static ALCboolean pa_reset_playback(ALCdevice *device) err = Pa_StartStream(data->stream); if(err != paNoError) { - ERROR("Pa_StartStream() returned an error: %s\n", Pa_GetErrorText(err)); + ERR("Pa_StartStream() returned an error: %s\n", Pa_GetErrorText(err)); return ALC_FALSE; } @@ -277,7 +277,7 @@ static void pa_stop_playback(ALCdevice *device) err = Pa_StopStream(data->stream); if(err != paNoError) - ERROR("Error stopping stream: %s\n", Pa_GetErrorText(err)); + ERR("Error stopping stream: %s\n", Pa_GetErrorText(err)); } @@ -332,7 +332,7 @@ static ALCboolean pa_open_capture(ALCdevice *device, const ALCchar *deviceName) inParams.sampleFormat = paFloat32; break; case DevFmtUShort: - ERROR("Unsigned short samples not supported\n"); + ERR("Unsigned short samples not supported\n"); goto error; } inParams.channelCount = ChannelsFromDevFmt(device->FmtChans); @@ -341,7 +341,7 @@ static ALCboolean pa_open_capture(ALCdevice *device, const ALCchar *deviceName) paFramesPerBufferUnspecified, paNoFlag, pa_capture_cb, device); if(err != paNoError) { - ERROR("Pa_OpenStream() returned an error: %s\n", Pa_GetErrorText(err)); + ERR("Pa_OpenStream() returned an error: %s\n", Pa_GetErrorText(err)); goto error; } @@ -363,7 +363,7 @@ static void pa_close_capture(ALCdevice *device) err = Pa_CloseStream(data->stream); if(err != paNoError) - ERROR("Error closing stream: %s\n", Pa_GetErrorText(err)); + ERR("Error closing stream: %s\n", Pa_GetErrorText(err)); free(data); device->ExtraData = NULL; @@ -376,7 +376,7 @@ static void pa_start_capture(ALCdevice *device) err = Pa_StartStream(data->stream); if(err != paNoError) - ERROR("Error starting stream: %s\n", Pa_GetErrorText(err)); + ERR("Error starting stream: %s\n", Pa_GetErrorText(err)); } static void pa_stop_capture(ALCdevice *device) @@ -386,7 +386,7 @@ static void pa_stop_capture(ALCdevice *device) err = Pa_StopStream(data->stream); if(err != paNoError) - ERROR("Error stopping stream: %s\n", Pa_GetErrorText(err)); + ERR("Error stopping stream: %s\n", Pa_GetErrorText(err)); } static void pa_capture_samples(ALCdevice *device, ALCvoid *buffer, ALCuint samples) |