diff options
author | Chris Robinson <[email protected]> | 2019-06-08 23:49:15 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-08 23:49:15 -0700 |
commit | 2e154069c6aa3bfc9d00d420e2f508a4127dd649 (patch) | |
tree | aa31339329f8fd04178d94b8a35a3d6314be5fd9 /Alc/backends/dsound.cpp | |
parent | c9ba7ba19353c9cf55dec668b2b059c267d1b0ea (diff) |
Use a bitfield for the device flags
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r-- | Alc/backends/dsound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp index 039f78ac..480d9a18 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&DEVICE_SAMPLE_TYPE_REQUEST)) + 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&DEVICE_CHANNELS_REQUEST)) + if(!mDevice->Flags.get(ChannelsRequest)) { if(speakers == DSSPEAKER_MONO) mDevice->FmtChans = DevFmtMono; |