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

◆ begin()

void AudioReactive::begin ( fl::UIAudio & audio)

Definition at line 5 of file audio_reactive.cpp.

5 {
6 auto input = audio.audioInput();
7 if (input) {
8 processor = FastLED.add(input);
9 autoPump = true;
10 }
11 if (!processor) {
13 }
14}
fl::UIAudio audio("Audio Input")
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
static void add(fl::ChannelPtr channel)
Add a Channel-based LED controller (from ChannelPtr)
fl::shared_ptr< audio::IInput > audioInput() FL_NOEXCEPT
Definition audio.h:71
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
fl::shared_ptr< fl::audio::Processor > processor

References audio, autoPump, FastLED, fl::make_shared(), and processor.

+ Here is the call graph for this function: