diff options
author | Chris Robinson <[email protected]> | 2015-02-09 05:56:37 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-02-09 05:56:37 -0800 |
commit | a925fb8111b1ee34e96df808e0d225e65805283e (patch) | |
tree | 5348afda5a0429e1d68158a6be12347e996cd4c7 | |
parent | 61755f35c1f0b54d827ef3bfbaaab860d8459357 (diff) |
Make sure the BS2B filter is freed if HRTF is enabled
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2004,7 +2004,11 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(usehrtf) device->Hrtf = GetHrtf(device->FmtChans, device->Frequency); if(device->Hrtf) + { TRACE("HRTF enabled\n"); + free(device->Bs2b); + device->Bs2b = NULL; + } else { device->Flags &= ~DEVICE_HRTF_REQUEST; |