aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/solaris.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-13 01:43:00 -0700
committerChris Robinson <[email protected]>2011-07-13 01:43:00 -0700
commit17773c56449475c1d255d839b89400668f15f40f (patch)
tree8907c354b007a6ac38e5d2b8b5b1c2f7312107a0 /Alc/solaris.c
parente1e47c6e437b58a07cc447cf212dd6ec61fdfbc0 (diff)
Rename the ERROR macro to ERR
Diffstat (limited to 'Alc/solaris.c')
-rw-r--r--Alc/solaris.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/solaris.c b/Alc/solaris.c
index 32fec944..d020ed4b 100644
--- a/Alc/solaris.c
+++ b/Alc/solaris.c
@@ -73,7 +73,7 @@ static ALuint SolarisProc(ALvoid *ptr)
{
if(errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR)
{
- ERROR("write failed: %s\n", strerror(errno));
+ ERR("write failed: %s\n", strerror(errno));
aluHandleDisconnect(pDevice);
break;
}
@@ -111,7 +111,7 @@ static ALCboolean solaris_open_playback(ALCdevice *device, const ALCchar *device
if(data->fd == -1)
{
free(data);
- ERROR("Could not open %s: %s\n", driver, strerror(errno));
+ ERR("Could not open %s: %s\n", driver, strerror(errno));
return ALC_FALSE;
}
@@ -170,13 +170,13 @@ static ALCboolean solaris_reset_playback(ALCdevice *device)
if(ioctl(data->fd, AUDIO_SETINFO, &info) < 0)
{
- ERROR("ioctl failed: %s\n", strerror(errno));
+ ERR("ioctl failed: %s\n", strerror(errno));
return ALC_FALSE;
}
if(ChannelsFromDevFmt(device->FmtChans) != info.play.channels)
{
- ERROR("Could not set %d channels, got %d instead\n", ChannelsFromDevFmt(device->FmtChans), info.play.channels);
+ ERR("Could not set %d channels, got %d instead\n", ChannelsFromDevFmt(device->FmtChans), info.play.channels);
return ALC_FALSE;
}
@@ -187,15 +187,15 @@ static ALCboolean solaris_reset_playback(ALCdevice *device)
(info.play.precision == 16 && info.play.encoding == AUDIO_ENCODING_LINEAR &&
device->FmtType == DevFmtShort)))
{
- ERROR("Could not set %#x sample type, got %d (%#x)\n",
- device->FmtType, info.play.precision, info.play.encoding);
+ ERR("Could not set %#x sample type, got %d (%#x)\n",
+ device->FmtType, info.play.precision, info.play.encoding);
return ALC_FALSE;
}
if(device->Frequency != info.play.sample_rate)
{
if((device->Flags&DEVICE_FREQUENCY_REQUEST))
- ERROR("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, info.play.sample_rate);
+ ERR("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, info.play.sample_rate);
device->Flags &= ~DEVICE_FREQUENCY_REQUEST;
device->Frequency = info.play.sample_rate;
}
@@ -230,7 +230,7 @@ static void solaris_stop_playback(ALCdevice *device)
data->killNow = 0;
if(ioctl(data->fd, AUDIO_DRAIN) < 0)
- ERROR("Error draining device: %s\n", strerror(errno));
+ ERR("Error draining device: %s\n", strerror(errno));
free(data->mix_data);
data->mix_data = NULL;