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

◆ zcf()

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

Definition at line 150 of file audio.h.

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

References FL_NOEXCEPT, mZeroCrossings, and pcm().

+ Here is the call graph for this function: