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

◆ updatePeak()

void fl::audio::detector::DynamicsAnalyzer::updatePeak ( float rms)
private

Definition at line 152 of file dynamics_analyzer.cpp.hpp.

152 {
153 if (rms > mPeakRMS) {
154 mPeakRMS = rms;
155 } else {
156 // Apply decay
158 }
159}
float rms(fl::span< const int16_t > data)
Definition simple.h:104

References mPeakDecay, mPeakRMS, and rms().

Referenced by update().

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