diff options
author | Chris Robinson <[email protected]> | 2018-01-12 11:34:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-12 11:34:23 -0800 |
commit | 77910afe577458595a3fccd2487fcb567067be58 (patch) | |
tree | 2774337be611ea27cfffaddb61b8e137d45b660f /Alc/ALc.c | |
parent | 4db1328bc58602619e12f67cb0b31e8785662ed2 (diff) |
Make NumAttrsForDevice do similar type checks as alcGetIntegerv
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |