diff options
author | Chris Robinson <[email protected]> | 2011-05-15 04:49:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-15 04:49:18 -0700 |
commit | 143c08bfcbba9cbd59ed61936e4adec0b109d41e (patch) | |
tree | 7734fdc951fac87c2f89b7c1e9ecd21807e8fcc9 /Alc/coreaudio.c | |
parent | b3902c89509e86b3a324254ae3a56329f89dbeba (diff) |
Use channel config strings in log output
Diffstat (limited to 'Alc/coreaudio.c')
-rw-r--r-- | Alc/coreaudio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/coreaudio.c b/Alc/coreaudio.c index 1d086926..4cac049f 100644 --- a/Alc/coreaudio.c +++ b/Alc/coreaudio.c @@ -175,7 +175,7 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if((device->Flags&DEVICE_CHANNELS_REQUEST) && device->FmtChans != DevFmtMono) { - AL_PRINT("Failed to set requested channel config %#x, got mono instead\n", device->FmtChans); + AL_PRINT("Failed to set %s, got Mono instead\n", DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_CHANNELS_REQUEST; } device->FmtChans = DevFmtMono; @@ -184,7 +184,7 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if((device->Flags&DEVICE_CHANNELS_REQUEST) && device->FmtChans != DevFmtStereo) { - AL_PRINT("Failed to set requested channel config %#x, got stereo instead\n", device->FmtChans); + AL_PRINT("Failed to set %s, got Stereo instead\n", DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_CHANNELS_REQUEST; } device->FmtChans = DevFmtStereo; @@ -193,7 +193,7 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if((device->Flags&DEVICE_CHANNELS_REQUEST) && device->FmtChans != DevFmtQuad) { - AL_PRINT("Failed to set requested channel config %#x, got quad instead\n", device->FmtChans); + AL_PRINT("Failed to set %s, got Quad instead\n", DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_CHANNELS_REQUEST; } device->FmtChans = DevFmtQuad; @@ -202,7 +202,7 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if((device->Flags&DEVICE_CHANNELS_REQUEST) && device->FmtChans != DevFmtX51) { - AL_PRINT("Failed to set requested channel config %#x, got 5.1 instead\n", device->FmtChans); + AL_PRINT("Failed to set %s, got 5.1 Surround instead\n", DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_CHANNELS_REQUEST; } device->FmtChans = DevFmtX51; @@ -211,7 +211,7 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if((device->Flags&DEVICE_CHANNELS_REQUEST) && device->FmtChans != DevFmtX61) { - AL_PRINT("Failed to set requested channel config %#x, got 6.1 instead\n", device->FmtChans); + AL_PRINT("Failed to set %s, got 6.1 Surround instead\n", DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_CHANNELS_REQUEST; } device->FmtChans = DevFmtX61; @@ -220,13 +220,13 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if((device->Flags&DEVICE_CHANNELS_REQUEST) && device->FmtChans != DevFmtX71) { - AL_PRINT("Failed to set requested channel config %#x, got 7.1 instead\n", device->FmtChans); + AL_PRINT("Failed to set %s, got 7.1 Surround instead\n", DevFmtChannelsString(device->FmtChans)); device->Flags &= ~DEVICE_CHANNELS_REQUEST; } device->FmtChans = DevFmtX71; break; default: - AL_PRINT("Unhandled channel count (%d), using stereo\n", streamFormat.mChannelsPerFrame); + AL_PRINT("Unhandled channel count (%d), using Stereo\n", streamFormat.mChannelsPerFrame); device->Flags &= ~DEVICE_CHANNELS_REQUEST; device->FmtChans = DevFmtStereo; streamFormat.mChannelsPerFrame = 2; |