FastLED 3.10.6
Loading...
Searching...
No Matches

◆ adjustRateToFPS()

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

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

206 {
207 if (actualFps <= 0.0f) {
208 return rateAtFps1;
209 }
210 float perSecond = fl::powf(rateAtFps1, fps1);
211 return fl::powf(perSecond, 1.0f / actualFps);
212}
float powf(float base, float exponent) FL_NO_EXCEPT
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: