|
FastLED 3.9.15
|
|
static |
Add an audio input and return an auto-pumped Processor.
Creates an audio input from the given config and sets up a scheduler task that automatically reads samples and feeds them to the Processor during FastLED.show(). The returned processor can be used to register event callbacks (onBeat, onVocalStart, etc.) without manual update() calls.
On platforms without audio hardware support, returns a no-op Processor (callbacks will never fire but the returned pointer is valid).
| config | Audio hardware configuration (e.g., Config::CreateInmp441(...)) |
Example:
Definition at line 749 of file FastLED.cpp.hpp.
References fl::audio::AudioManager::add(), and fl::audio::AudioManager::instance().
Here is the call graph for this function: