MCPcopy Create free account
hub / github.com/FastLED/FastLED / fireCallbacks

Method fireCallbacks

src/fl/audio/detector/vocal.cpp.hpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void Vocal::fireCallbacks() {
89 if (mStateChanged) {
90 if (onVocal) onVocal(static_cast<u8>(mConfidenceSmoother.value() * 255.0f));
91 if (mVocalActive && onVocalStart) onVocalStart();
92 if (!mVocalActive && onVocalEnd) onVocalEnd();
93 mPreviousVocalActive = mVocalActive;
94 mStateChanged = false;
95 }
96}
97
98void Vocal::reset() {
99 mVocalActive = false;

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected