aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/jack.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-05 21:50:55 -0800
committerChris Robinson <[email protected]>2022-12-05 21:50:55 -0800
commitc55d6d8c345223c062dfdbd747fb13a8fd44aad5 (patch)
tree5d9b8343eb03f495904de14e57d61611a94e38b5 /alc/backends/jack.cpp
parent4de5c7dfeebc2335ad3d7c2dd4905284677a68c9 (diff)
Avoid LIKELY/UNLIKELY macros
Diffstat (limited to 'alc/backends/jack.cpp')
-rw-r--r--alc/backends/jack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/jack.cpp b/alc/backends/jack.cpp
index 2b0131b3..afa26b23 100644
--- a/alc/backends/jack.cpp
+++ b/alc/backends/jack.cpp
@@ -340,7 +340,7 @@ int JackPlayback::processRt(jack_nframes_t numframes) noexcept
out[numchans++] = static_cast<float*>(jack_port_get_buffer(port, numframes));
}
- if LIKELY(mPlaying.load(std::memory_order_acquire))
+ if(mPlaying.load(std::memory_order_acquire)) [[allikely]]
mDevice->renderSamples({out.data(), numchans}, static_cast<uint>(numframes));
else
{
@@ -364,7 +364,7 @@ int JackPlayback::process(jack_nframes_t numframes) noexcept
}
jack_nframes_t total{0};
- if LIKELY(mPlaying.load(std::memory_order_acquire))
+ if(mPlaying.load(std::memory_order_acquire)) [[allikely]]
{
auto data = mRing->getReadVector();
jack_nframes_t todo{minu(numframes, static_cast<uint>(data.first.len))};