diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2021-01-22 00:00:10 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2021-01-22 00:00:10 -0800 |
commit | 5ff5fd8eccbdc5888b350059cb1f341a33ddf05f (patch) | |
tree | 3ffac7ebb7c57e050a1decae43a40a834b48cb57 /alc/backends/wasapi.cpp | |
parent | 5729e1004da8dd8760fe3fa217faec4d3cd80427 (diff) |
Use a standard bitset for bitfield 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 a0eb814f..1d1b93c4 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -924,9 +924,9 @@ HRESULT WasapiPlayback::resetProxy() const ReferenceTime per_time{ReferenceTime{seconds{mDevice->UpdateSize}} / mDevice->Frequency}; const ReferenceTime buf_time{ReferenceTime{seconds{mDevice->BufferSize}} / mDevice->Frequency}; - if(!mDevice->Flags.get<FrequencyRequest>()) + if(!mDevice->Flags.test(FrequencyRequest)) mDevice->Frequency = OutputType.Format.nSamplesPerSec; - if(!mDevice->Flags.get<ChannelsRequest>()) + if(!mDevice->Flags.test(ChannelsRequest)) { const uint32_t chancount{OutputType.Format.nChannels}; const DWORD chanmask{OutputType.dwChannelMask}; |