| 3 | #include "fl/audio/detector/vibe.h" |
| 4 | |
| 5 | void 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 | |
| 16 | void AudioReactive::connectToEngine(fl::FxEngine &fxEngine, |
| 17 | fl::UICheckbox &enableVibe, |