FastLED 3.9.15
Loading...
Searching...
No Matches

◆ adjustRateToFPS()

float fl::audio::detector::Vibe::adjustRateToFPS ( float rateAtFps1,
float fps1,
float actualFps )
staticprivate

Definition at line 196 of file vibe.cpp.hpp.

197 {
198 if (actualFps <= 0.0f) {
199 return rateAtFps1;
200 }
201 float perSecond = fl::powf(rateAtFps1, fps1);
202 return fl::powf(perSecond, 1.0f / actualFps);
203}
float powf(float base, float exponent) FL_NOEXCEPT
Definition math.h:436

References fl::powf().

Referenced by update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: