aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/wasapi.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-08-23 00:04:43 -0700
committerChris Robinson <[email protected]>2021-08-23 00:04:43 -0700
commitb841ce5e17cfafa168ea8de709803b5308f8d4c6 (patch)
tree7cc57f4456dc571266aaa9090ca329af47a5e86a /alc/backends/wasapi.cpp
parent4800dfafce45930aac9d54d0fecb24fb6b5d9011 (diff)
Properly check the channel count for WASAPI capture
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r--alc/backends/wasapi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index 2d7a2dd1..c5c14d22 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -1524,7 +1524,8 @@ HRESULT WasapiCapture::resetProxy()
return (chancount == 7 && (chanmask == 0 || (chanmask&X61Mask) == X6DOT1));
case DevFmtX71:
return (chancount == 8 && (chanmask == 0 || (chanmask&X71Mask) == X7DOT1));
- case DevFmtAmbi3D: return (chanmask == 0 && device->channelsFromFmt());
+ case DevFmtAmbi3D:
+ return (chanmask == 0 && chancount == device->channelsFromFmt());
}
return false;
};