From 77910afe577458595a3fccd2487fcb567067be58 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 12 Jan 2018 11:34:23 -0800 Subject: [PATCH] Make NumAttrsForDevice do similar type checks as alcGetIntegerv --- Alc/ALc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index e70e83dd..dfebe02e 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -3104,7 +3104,8 @@ ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *Device, ALCenum para static inline ALCsizei NumAttrsForDevice(ALCdevice *device) { if(device->Type == Capture) return 9; - if(device->Type == Loopback && device->FmtChans == DevFmtAmbi3D) + if(device->Type != Loopback) return 29; + if(device->FmtChans == DevFmtAmbi3D) return 35; return 29; }