aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-16 00:39:13 -0700
committerChris Robinson <[email protected]>2011-07-16 00:39:13 -0700
commit54b5f35125d1b85c3e16c292a9829e9d652d2e38 (patch)
tree505828b11a5f75145938b9be9be1c9a341a478f0
parent23bfb03d2a362f33e6234c0bda848241a8bd1e32 (diff)
Warn about HRTF being disabled in the compatibility check function
-rw-r--r--Alc/ALc.c6
-rw-r--r--Alc/hrtf.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index f4481ae3..0a025bf6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1371,12 +1371,8 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
device->Flags |= DEVICE_USE_HRTF;
if((device->Flags&DEVICE_USE_HRTF) && !IsHrtfCompatible(device))
- {
- ERR("HRTF disabled (format is %uhz %s)\n", device->Frequency, DevFmtChannelsString(device->FmtChans));
device->Flags &= ~DEVICE_USE_HRTF;
- }
- else
- TRACE("HRTF %s\n", (device->Flags&DEVICE_USE_HRTF)?"enabled":"disabled");
+ TRACE("HRTF %s\n", (device->Flags&DEVICE_USE_HRTF)?"enabled":"disabled");
if(!(device->Flags&DEVICE_USE_HRTF) && device->Bs2bLevel > 0 && device->Bs2bLevel <= 6)
{
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 4d833d1d..4e03e198 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -154,6 +154,9 @@ ALCboolean IsHrtfCompatible(ALCdevice *device)
{
if(device->FmtChans == DevFmtStereo && device->Frequency == Hrtf.sampleRate)
return ALC_TRUE;
+ ERR("Incompatible HRTF format: %s %uhz (%s %uhz needed)\n",
+ DevFmtChannelsString(device->FmtChans), device->Frequency,
+ DevFmtChannelsString(DevFmtStereo), Hrtf.sampleRate);
return ALC_FALSE;
}