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

◆ add() [2/3]

shared_ptr< Processor > fl::audio::AudioManager::add ( shared_ptr< IInput > input)

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

47 {
48 if (!input) {
49 FL_WARN("Cannot add null audio input");
50 return nullptr;
51 }
52 input->start();
54 if (processor()) {
55 FL_WARN("Replacing existing audio processor");
56 }
57 processor() = proc;
58 return proc;
59}
shared_ptr< Processor > & processor() FL_NOEXCEPT
static fl::shared_ptr< Processor > createWithAutoInput(fl::shared_ptr< IInput > input) 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 fl::audio::Processor::createWithAutoInput(), FL_WARN, fl::fl::move(), and processor().

+ Here is the call graph for this function: