aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-10 23:57:45 -0700
committerChris Robinson <[email protected]>2011-07-10 23:57:45 -0700
commitb237ebba445034f69be1a5fe8527f272e7190f15 (patch)
tree498c474d77e0530cb09dba1c5c502ee2e556eb51
parent6038bbd6ec5841445784b74c33be245b628ce63b (diff)
Trace when the format is being requested
-rw-r--r--Alc/ALc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index ffcd78ac..b9d88cef 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1341,14 +1341,22 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
return ALC_TRUE;
LockDevice(device);
- TRACE("Format request: %s, %s, %uhz\n", DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType), device->Frequency);
+ TRACE("Format pre-setup: %s%s, %s, %uhz%s\n",
+ DevFmtChannelsString(device->FmtChans),
+ (device->Flags&DEVICE_CHANNELS_REQUEST)?" (requested)":"",
+ DevFmtTypeString(device->FmtType), device->Frequency,
+ (device->Flags&DEVICE_FREQUENCY_REQUEST)?" (requested)":"");
if(ALCdevice_ResetPlayback(device) == ALC_FALSE)
{
UnlockDevice(device);
return ALC_FALSE;
}
device->Flags |= DEVICE_RUNNING;
- TRACE("Format retrieved: %s, %s, %uhz\n", DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType), device->Frequency);
+ TRACE("Format post-setup: %s%s, %s, %uhz%s\n",
+ DevFmtChannelsString(device->FmtChans),
+ (device->Flags&DEVICE_CHANNELS_REQUEST)?" (requested)":"",
+ DevFmtTypeString(device->FmtType), device->Frequency,
+ (device->Flags&DEVICE_FREQUENCY_REQUEST)?" (requested)":"");
aluInitPanning(device);