diff options
author | Chris Robinson <[email protected]> | 2015-09-05 00:42:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-09-05 00:42:44 -0700 |
commit | 804909e1d75a607ec7b32502b326756b0069e8d7 (patch) | |
tree | 1213390a78011d87a0beee9d73e73df77393d2c5 /Alc | |
parent | d6290482ccc1604b1dc92726215ea574acae469d (diff) |
Set a proper HRTF status when non-stereo output is used
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2006,6 +2006,10 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) device->Hrtf_Mode = DisabledHrtf; if(device->FmtChans != DevFmtStereo) { + if((device->Flags&DEVICE_HRTF_REQUEST_MASK) == Hrtf_Enable) + device->Hrtf_Status = ALC_HRTF_UNSUPPORTED_FORMAT_SOFT; + device->Flags &= ~DEVICE_HRTF_REQUEST_MASK; + free(device->Bs2b); device->Bs2b = NULL; } |