From 212b187447c6b095de3629448d3a2270c09cf119 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 25 Jun 2011 21:39:36 -0700 Subject: Add a function to check if a device is compatible with the Hrtf filter --- Alc/ALc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/ALc.c') 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; -- cgit v1.2.3