FastLED 3.10.8
Loading...
Searching...
No Matches

◆ zcf()

float fl::audio::SampleImpl::zcf ( ) const
inline

Definition at line 151 of file audio.h.

151 {
152 const fl::size n = pcm().size();
153 if (n < 2) {
154 return 0.f;
155 }
156 return float(mZeroCrossings) / static_cast<float>(n - 1);
157 }
fl::u16 mZeroCrossings
Definition audio.h:199
const VectorPCM & pcm() const FL_NO_EXCEPT
Definition audio.h:127
fl::size size() const FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, mZeroCrossings, and pcm().

+ Here is the call graph for this function: