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

Method updateFromContext

src/fl/audio/audio_processor.cpp.hpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void Processor::updateFromContext(shared_ptr<Context> externalContext) {
88 // Use externally-provided context (FFT already cached, signal already conditioned).
89 // This avoids recomputing FFT when Reactive has already done it.
90 for (auto& d : mActiveDetectors) {
91 d->update(externalContext);
92 }
93 for (auto& d : mActiveDetectors) {
94 d->fireCallbacks();
95 }
96}
97
98void Processor::onBeat(function<void()> callback) {
99 auto detector = getBeatDetector();

Callers 1

processSampleMethod · 0.80

Calls 2

updateMethod · 0.45
fireCallbacksMethod · 0.45

Tested by

no test coverage detected