aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/dsound.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-09 02:20:30 -0700
committerChris Robinson <[email protected]>2019-06-09 02:20:30 -0700
commit90d25e5187ca50a6e978603fabb6395035ad0db5 (patch)
treeb44cddd07f7f17227e60b049659bd999a11e78fb /Alc/backends/dsound.cpp
parent2e154069c6aa3bfc9d00d420e2f508a4127dd649 (diff)
Make sure the bitfield indices are constants
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r--Alc/backends/dsound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp
index 480d9a18..93de3135 100644
--- a/Alc/backends/dsound.cpp
+++ b/Alc/backends/dsound.cpp
@@ -359,7 +359,7 @@ ALCboolean DSoundPlayback::reset()
mDevice->FmtType = DevFmtUByte;
break;
case DevFmtFloat:
- if(mDevice->Flags.get(SampleTypeRequest))
+ if(mDevice->Flags.get<SampleTypeRequest>())
break;
/* fall-through */
case DevFmtUShort:
@@ -380,7 +380,7 @@ ALCboolean DSoundPlayback::reset()
if(SUCCEEDED(hr))
{
speakers = DSSPEAKER_CONFIG(speakers);
- if(!mDevice->Flags.get(ChannelsRequest))
+ if(!mDevice->Flags.get<ChannelsRequest>())
{
if(speakers == DSSPEAKER_MONO)
mDevice->FmtChans = DevFmtMono;