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

Function rateSliderValueToLineDuration

src/gui/SpectrumOverlayMenu.cpp:98–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static constexpr int rateSliderValueToLineDuration(int sliderValue)
99{
100 return std::clamp(sliderValue,
101 WF_RATE_SLIDER_MIN,
102 WF_RATE_SLIDER_MAX);
103}
104
105static_assert(rateSliderValueToLineDuration(1) == 1);
106static_assert(rateSliderValueToLineDuration(100) == 100);

Callers 2

buildDisplayPanelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected