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

◆ zcf()

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

Definition at line 120 of file audio.h.

120 {
121 const size_t n = pcm().size();
122 if (n < 2) {
123 return 0.f;
124 }
125 return float(mZeroCrossings) / (n - 1);
126 }
int16_t mZeroCrossings
Definition audio.h:144
const VectorPCM & pcm() const
Definition audio.h:109
size_t size() const
Definition vector.h:435

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

+ Here is the call graph for this function: