FastLED 3.10.8
Loading...
Searching...
No Matches

◆ add() [3/3]

shared_ptr< Processor > fl::audio::AudioManager::add ( UIAudio & uiAudio)

Definition at line 62 of file audio_manager.cpp.hpp.

62 {
63 auto input = uiAudio.audioInput();
64 if (input) {
65 return add(fl::move(input));
66 }
67 // No platform audio input (e.g. hardware stub) — use the stored config
68 // to create a real hardware audio input.
69 const auto& cfg = uiAudio.config();
70 if (cfg.has_value()) {
71 return add(*cfg);
72 }
73 FL_WARN("UIAudio has no audio input and no hardware config");
74 return nullptr;
75}
shared_ptr< Processor > add(const Config &config) FL_NO_EXCEPT
#define FL_WARN(...)
Definition log.h:437
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:30

References fl::add(), fl::FL_NO_EXCEPT, FL_WARN, and fl::adl_barrier::move().

+ Here is the call graph for this function: