diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-06-08 23:49:15 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-06-08 23:49:15 -0700 |
commit | 2e154069c6aa3bfc9d00d420e2f508a4127dd649 (patch) | |
tree | aa31339329f8fd04178d94b8a35a3d6314be5fd9 /Alc/backends/wasapi.cpp | |
parent | c9ba7ba19353c9cf55dec668b2b059c267d1b0ea (diff) |
Use a bitfield for the device flags
Diffstat (limited to 'Alc/backends/wasapi.cpp')
-rw-r--r-- | Alc/backends/wasapi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index c80e5943..6c3dc6e6 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -787,9 +787,9 @@ HRESULT WasapiPlayback::resetProxy() const REFERENCE_TIME per_time{mDevice->UpdateSize * REFTIME_PER_SEC / mDevice->Frequency}; const REFERENCE_TIME buf_time{mDevice->BufferSize * REFTIME_PER_SEC / mDevice->Frequency}; - if(!(mDevice->Flags&DEVICE_FREQUENCY_REQUEST)) + if(!mDevice->Flags.get(FrequencyRequest)) mDevice->Frequency = OutputType.Format.nSamplesPerSec; - if(!(mDevice->Flags&DEVICE_CHANNELS_REQUEST)) + if(!mDevice->Flags.get(ChannelsRequest)) { if(OutputType.Format.nChannels == 1 && OutputType.dwChannelMask == MONO) mDevice->FmtChans = DevFmtMono; |