diff options
author | Chris Robinson <[email protected]> | 2011-09-18 09:52:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-18 09:52:40 -0700 |
commit | 25f7c2704382221c9d563a7c1e57c02252eb3dad (patch) | |
tree | cbc1a5826fc368ac880a3e7baa1f6805ed21e9d3 /Alc/ALc.c | |
parent | ec3b78e52d95752160231bc8eb5ad9647e20b3b9 (diff) |
Store the HRTF tables used in the device
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); |