MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / setLookaheadMs

Method setLookaheadMs

src/core/ClientGate.cpp:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141{ return m_atomics.returnDb.load(std::memory_order_relaxed); }
142
143void ClientGate::setLookaheadMs(float ms) noexcept
144{
145 m_atomics.lookaheadMs.store(
146 std::clamp(ms, 0.0f, static_cast<float>(kMaxLookaheadMs)),
147 std::memory_order_relaxed);
148 m_atomics.version.fetch_add(1, std::memory_order_release);
149}
150float ClientGate::lookaheadMs() const noexcept
151{ return m_atomics.lookaheadMs.load(std::memory_order_relaxed); }
152

Callers 6

applyPresetJsonMethod · 0.80
applyLookaheadMethod · 0.80
applyLookaheadMethod · 0.80
testLookaheadDelayFunction · 0.80

Calls

no outgoing calls

Tested by 1

testLookaheadDelayFunction · 0.64