diff options
author | Chris Robinson <[email protected]> | 2011-07-10 23:57:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-10 23:57:45 -0700 |
commit | b237ebba445034f69be1a5fe8527f272e7190f15 (patch) | |
tree | 498c474d77e0530cb09dba1c5c502ee2e556eb51 | |
parent | 6038bbd6ec5841445784b74c33be245b628ce63b (diff) |
Trace when the format is being requested
-rw-r--r-- | Alc/ALc.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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); |