aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-25 21:39:36 -0700
committerChris Robinson <[email protected]>2011-06-25 21:39:36 -0700
commit212b187447c6b095de3629448d3a2270c09cf119 (patch)
tree61ea80069c4588c7ea054899042d714890aeb14c /Alc/ALc.c
parentac9a6e891fb26c8c41774be6f90c7a96f85d1942 (diff)
Add a function to check if a device is compatible with the Hrtf filter
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index b84aa6e0..f95a2ac7 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1335,8 +1335,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
device->Flags |= DEVICE_USE_HRTF;
- if((device->FmtChans != DevFmtStereo || device->Frequency != 44100) &&
- (device->Flags&DEVICE_USE_HRTF))
+ if((device->Flags&DEVICE_USE_HRTF) && !IsHrtfCompatible(device))
{
AL_PRINT("HRTF disabled (format is %uhz %s)\n", device->Frequency, DevFmtChannelsString(device->FmtChans));
device->Flags &= ~DEVICE_USE_HRTF;