aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/wave.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-22 05:50:27 -0800
committerChris Robinson <[email protected]>2021-01-22 05:50:27 -0800
commitcff3693387c6d389f83ca25c7a150ae3395a434b (patch)
tree8a7f8803a1b36dc5ed7c18be92f80f98b8688a83 /alc/backends/wave.cpp
parentda59ad51057ce7343e3db4632e8679e1e537779d (diff)
Use if constexpr when possible
Diffstat (limited to 'alc/backends/wave.cpp')
-rw-r--r--alc/backends/wave.cpp3
1 files changed, 2 insertions, 1 deletions
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()};