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

◆ zcf()

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

Definition at line 141 of file audio.h.

141 {
142 const fl::size n = pcm().size();
143 if (n < 2) {
144 return 0.f;
145 }
146 return float(mZeroCrossings) / static_cast<float>(n - 1);
147 }
fl::i16 mZeroCrossings
Definition audio.h:165
const VectorPCM & pcm() const
Definition audio.h:122
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: