aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-10-06 01:16:07 -0700
committerChris Robinson <[email protected]>2011-10-06 01:16:07 -0700
commita7d3779dfafbc7b5011ea7d1b252d94daed969f6 (patch)
tree02521cea8acdf465152acc802329b706daeffd97 /Alc/ALc.c
parent75fee8c11f76889285e3b68cc1f3d13e92dacc26 (diff)
Check for the HRTF object instead of a flag
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 54821256..b548e6bf 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1155,14 +1155,11 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
device->Hrtf = NULL;
- device->Flags &= ~DEVICE_USE_HRTF;
if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
- device->Flags |= DEVICE_USE_HRTF;
- if((device->Flags&DEVICE_USE_HRTF) && !(device->Hrtf=GetHrtf(device)))
- device->Flags &= ~DEVICE_USE_HRTF;
- TRACE("HRTF %s\n", (device->Flags&DEVICE_USE_HRTF)?"enabled":"disabled");
+ device->Hrtf = GetHrtf(device);
+ TRACE("HRTF %s\n", device->Hrtf?"enabled":"disabled");
- if(!(device->Flags&DEVICE_USE_HRTF) && device->Bs2bLevel > 0 && device->Bs2bLevel <= 6)
+ if(!device->Hrtf && device->Bs2bLevel > 0 && device->Bs2bLevel <= 6)
{
if(!device->Bs2b)
{