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

Method begin

examples/AnimartrixRing/audio_reactive.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "fl/audio/detector/vibe.h"
4
5void AudioReactive::begin(fl::UIAudio &audio) {
6 auto input = audio.audioInput();
7 if (input) {
8 processor = FastLED.add(input);
9 autoPump = true;
10 }
11 if (!processor) {
12 processor = fl::make_shared<fl::audio::Processor>();
13 }
14}
15
16void AudioReactive::connectToEngine(fl::FxEngine &fxEngine,
17 fl::UICheckbox &enableVibe,

Callers 15

setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45
setupFunction · 0.45

Calls 2

audioInputMethod · 0.45
addMethod · 0.45

Tested by 4

executeTogglesFunction · 0.36
testRxChannelSanityFunction · 0.36
setupFunction · 0.36
captureFunction · 0.36