From b237ebba445034f69be1a5fe8527f272e7190f15 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 10 Jul 2011 23:57:45 -0700 Subject: Trace when the format is being requested --- Alc/ALc.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Alc') 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); -- cgit v1.2.3