From 8d061cfca20b4861a025b0a5c6fe280047a03753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Thu, 7 Sep 2023 23:55:42 +0200 Subject: [PATCH] Use roundUpToPowerOf2 as a wrapper for std::bit_ceil --- src/soundio/soundmanagerconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soundio/soundmanagerconfig.cpp b/src/soundio/soundmanagerconfig.cpp index 08a68091e8ac..1b3dada4c6b7 100644 --- a/src/soundio/soundmanagerconfig.cpp +++ b/src/soundio/soundmanagerconfig.cpp @@ -409,7 +409,7 @@ unsigned int SoundManagerConfig::getFramesPerBuffer() const { } const unsigned int sampleRateKhz = static_cast(m_sampleRate / 1000); - return std::bit_ceil(sampleRateKhz) << (audioBufferSizeIndex - 1); + return roundUpToPowerOf2(sampleRateKhz) << (audioBufferSizeIndex - 1); } // Set the audio buffer size