aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/alsa.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-22 00:00:10 -0800
committerChris Robinson <[email protected]>2021-01-22 00:00:10 -0800
commit5ff5fd8eccbdc5888b350059cb1f341a33ddf05f (patch)
tree3ffac7ebb7c57e050a1decae43a40a834b48cb57 /alc/backends/alsa.cpp
parent5729e1004da8dd8760fe3fa217faec4d3cd80427 (diff)
Use a standard bitset for bitfield flags
Diffstat (limited to 'alc/backends/alsa.cpp')
-rw-r--r--alc/backends/alsa.cpp4
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");