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

◆ add() [3/3]

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

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

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

References add(), fl::UIAudio::audioInput(), fl::UIAudio::config(), FL_WARN, and fl::fl::move().

+ Here is the call graph for this function: