aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-18 09:52:40 -0700
committerChris Robinson <[email protected]>2011-09-18 09:52:40 -0700
commit25f7c2704382221c9d563a7c1e57c02252eb3dad (patch)
treecbc1a5826fc368ac880a3e7baa1f6805ed21e9d3 /Alc/ALc.c
parentec3b78e52d95752160231bc8eb5ad9647e20b3b9 (diff)
Store the HRTF tables used in the device
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index dde5ce4c..d53829ea 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1190,9 +1190,11 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->PendingClicks[i] = 0.0f;
}
+ 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) && !IsHrtfCompatible(device))
+ 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");