aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-10 22:54:39 -0700
committerChris Robinson <[email protected]>2011-07-10 22:54:39 -0700
commit84a67ef766531649470619ff8d96a2bb03c79240 (patch)
treeea87f70035d6b875a1f4e16b549b1cb440f58a0d /Alc/ALc.c
parente03df97919d9f464994f8e439fa230549ea69509 (diff)
Trace device parameters when updating
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e83bee76..81036210 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1341,12 +1341,14 @@ 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);
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);
aluInitPanning(device);
@@ -1363,6 +1365,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
ERROR("HRTF disabled (format is %uhz %s)\n", device->Frequency, DevFmtChannelsString(device->FmtChans));
device->Flags &= ~DEVICE_USE_HRTF;
}
+ TRACE("HRTF %s\n", (device->Flags&DEVICE_USE_HRTF)?"enabled":"disabled");
if(!(device->Flags&DEVICE_USE_HRTF) && device->Bs2bLevel > 0 && device->Bs2bLevel <= 6)
{
@@ -1373,11 +1376,13 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
bs2b_set_srate(device->Bs2b, device->Frequency);
bs2b_set_level(device->Bs2b, device->Bs2bLevel);
+ TRACE("BS2B level %d\n", device->Bs2bLevel);
}
else
{
free(device->Bs2b);
device->Bs2b = NULL;
+ TRACE("BS2B disabled\n");
}
device->Flags &= ~DEVICE_DUPLICATE_STEREO;
@@ -1395,6 +1400,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->Flags |= DEVICE_DUPLICATE_STEREO;
break;
}
+ TRACE("Stereo duplication %s\n", (device->Flags&DEVICE_DUPLICATE_STEREO)?"enabled":"disabled");
for(i = 0;i < device->NumContexts;i++)
{