aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-05 00:42:44 -0700
committerChris Robinson <[email protected]>2015-09-05 00:42:44 -0700
commit804909e1d75a607ec7b32502b326756b0069e8d7 (patch)
tree1213390a78011d87a0beee9d73e73df77393d2c5
parentd6290482ccc1604b1dc92726215ea574acae469d (diff)
Set a proper HRTF status when non-stereo output is used
-rw-r--r--Alc/ALc.c4
1 files changed, 4 insertions, 0 deletions
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;
}