aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/opensl.cpp3
-rw-r--r--alc/backends/wave.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/alc/backends/opensl.cpp b/alc/backends/opensl.cpp
index 926911f0..917e097f 100644
--- a/alc/backends/opensl.cpp
+++ b/alc/backends/opensl.cpp
@@ -37,6 +37,7 @@
#include "alu.h"
#include "compat.h"
#include "core/logging.h"
+#include "opthelpers.h"
#include "ringbuffer.h"
#include "threads.h"
@@ -104,7 +105,7 @@ constexpr SLuint32 GetTypeRepresentation(DevFmtType type) noexcept
constexpr SLuint32 GetByteOrderEndianness() noexcept
{
- if /*constexpr*/(al::endian::native == al::endian::little)
+ if_constexpr(al::endian::native == al::endian::little)
return SL_BYTEORDER_LITTLEENDIAN;
return SL_BYTEORDER_BIGENDIAN;
}
diff --git a/alc/backends/wave.cpp b/alc/backends/wave.cpp
index afff1d56..4f738230 100644
--- a/alc/backends/wave.cpp
+++ b/alc/backends/wave.cpp
@@ -42,6 +42,7 @@
#include "alu.h"
#include "compat.h"
#include "core/logging.h"
+#include "opthelpers.h"
#include "strutils.h"
#include "threads.h"
#include "vector.h"
@@ -149,7 +150,7 @@ int WaveBackend::mixerProc()
mDevice->renderSamples(mBuffer.data(), mDevice->UpdateSize, frameStep);
done += mDevice->UpdateSize;
- if /*constexpr*/(al::endian::native != al::endian::little)
+ if_constexpr(al::endian::native != al::endian::little)
{
const uint bytesize{mDevice->bytesFromFmt()};