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

◆ zcf()

float fl::AudioSampleImpl::zcf ( ) const
inline

Definition at line 127 of file audio.h.

127 {
128 const fl::size n = pcm().size();
129 if (n < 2) {
130 return 0.f;
131 }
132 return float(mZeroCrossings) / static_cast<float>(n - 1);
133 }
fl::i16 mZeroCrossings
Definition audio.h:151
const VectorPCM & pcm() const
Definition audio.h:115
fl::size size() const
Definition vector.h:545

References mZeroCrossings, pcm(), and fl::HeapVector< T, Allocator >::size().

+ Here is the call graph for this function: