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/pulseaudio.cpp | |
parent | c9ba7ba19353c9cf55dec668b2b059c267d1b0ea (diff) |
Use a bitfield for the device flags
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r-- | Alc/backends/pulseaudio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp index 30c0053d..0b7257d1 100644 --- a/Alc/backends/pulseaudio.cpp +++ b/Alc/backends/pulseaudio.cpp @@ -779,7 +779,7 @@ void PulsePlayback::sinkInfoCallback(pa_context* UNUSED(context), const pa_sink_ ); if(chanmap != chanmaps.cend()) { - if(!(mDevice->Flags&DEVICE_CHANNELS_REQUEST)) + if(!mDevice->Flags.get(ChannelsRequest)) mDevice->FmtChans = chanmap->chans; } else @@ -910,7 +910,7 @@ ALCboolean PulsePlayback::reset() flags |= PA_STREAM_ADJUST_LATENCY; } if(GetConfigValueBool(mDevice->DeviceName.c_str(), "pulse", "fix-rate", 0) || - !(mDevice->Flags&DEVICE_FREQUENCY_REQUEST)) + !mDevice->Flags.get(FrequencyRequest)) flags |= PA_STREAM_FIX_RATE; pa_channel_map chanmap{}; |