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