diff options
author | Chris Robinson <[email protected]> | 2021-01-22 00:00:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-01-22 00:00:10 -0800 |
commit | 5ff5fd8eccbdc5888b350059cb1f341a33ddf05f (patch) | |
tree | 3ffac7ebb7c57e050a1decae43a40a834b48cb57 /alc/backends/alsa.cpp | |
parent | 5729e1004da8dd8760fe3fa217faec4d3cd80427 (diff) |
Use a standard bitset for bitfield flags
Diffstat (limited to 'alc/backends/alsa.cpp')
-rw-r--r-- | alc/backends/alsa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/alsa.cpp b/alc/backends/alsa.cpp index 814c2553..bdfdd040 100644 --- a/alc/backends/alsa.cpp +++ b/alc/backends/alsa.cpp @@ -746,8 +746,8 @@ bool AlsaPlayback::reset() } CHECK(snd_pcm_hw_params_set_channels(mPcmHandle, hp.get(), mDevice->channelsFromFmt())); /* set rate (implicitly constrains period/buffer parameters) */ - if(!GetConfigValueBool(mDevice->DeviceName.c_str(), "alsa", "allow-resampler", 0) || - !mDevice->Flags.get<FrequencyRequest>()) + if(!GetConfigValueBool(mDevice->DeviceName.c_str(), "alsa", "allow-resampler", 0) + || !mDevice->Flags.test(FrequencyRequest)) { if(snd_pcm_hw_params_set_rate_resample(mPcmHandle, hp.get(), 0) < 0) ERR("Failed to disable ALSA resampler\n"); |