aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-20 20:14:33 -0700
committerChris Robinson <[email protected]>2023-09-20 20:14:33 -0700
commitdda61d7b0fe1de983c7af10efd321fa01c4831d8 (patch)
treea14ab1a452e7fe8cede358bd44ca1fdf3619dca0 /alc/backends
parent3d5bd75559ff85ea2a019968361212482afd904b (diff)
Don't assume an enum's underlying type
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/wasapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index de974774..25845527 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -1244,7 +1244,7 @@ FORCE_ALIGN int WasapiPlayback::mixerSpatialProc()
{
if(channels.empty()) UNLIKELY
{
- DWORD flags{audio.mStaticMask};
+ auto flags = al::to_underlying(audio.mStaticMask);
channels.reserve(static_cast<uint>(al::popcount(flags)));
while(flags)
{