From 804909e1d75a607ec7b32502b326756b0069e8d7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Sep 2015 00:42:44 -0700 Subject: Set a proper HRTF status when non-stereo output is used --- Alc/ALc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Alc/ALc.c b/Alc/ALc.c index 06372231..e8acd424 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -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; } -- cgit v1.2.3