FastLED
3.9.15
Loading...
Searching...
No Matches
audio_manager.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
fl/audio/audio_processor.h
"
4
#include "
fl/audio/input.h
"
5
#include "
fl/stl/shared_ptr.h
"
6
#include "
fl/stl/noexcept.h
"
7
8
namespace
fl
{
9
10
class
UIAudio
;
// forward declaration
11
12
namespace
audio
{
13
14
class
AudioManager
{
15
public
:
16
static
AudioManager
&
instance
()
FL_NOEXCEPT
;
17
18
shared_ptr<Processor>
add
(
const
Config
&config)
FL_NOEXCEPT
;
19
shared_ptr<Processor>
add
(
shared_ptr<IInput>
input)
FL_NOEXCEPT
;
20
shared_ptr<Processor>
add
(
UIAudio
&uiAudio)
FL_NOEXCEPT
;
21
void
remove
(
shared_ptr<Processor>
processor
)
FL_NOEXCEPT
;
22
23
shared_ptr<Processor>
&
processor
()
FL_NOEXCEPT
;
24
25
AudioManager
()
FL_NOEXCEPT
= default;
26
~
AudioManager
()
FL_NOEXCEPT
= default;
27
28
private:
29
AudioManager
(const
AudioManager
&)
FL_NOEXCEPT
= delete;
30
AudioManager
&operator=(const
AudioManager
&)
FL_NOEXCEPT
= delete;
31
};
32
33
}
// namespace audio
34
}
// namespace fl
audio_processor.h
fl::UIAudio
Definition
audio.h:54
fl::audio::AudioManager::add
shared_ptr< Processor > add(const Config &config) FL_NOEXCEPT
Definition
audio_manager.cpp.hpp:18
fl::audio::AudioManager::instance
static AudioManager & instance() FL_NOEXCEPT
Definition
audio_manager.cpp.hpp:10
fl::audio::AudioManager::remove
void remove(shared_ptr< Processor > processor) FL_NOEXCEPT
Definition
audio_manager.cpp.hpp:76
fl::audio::AudioManager::processor
shared_ptr< Processor > & processor() FL_NOEXCEPT
Definition
audio_manager.cpp.hpp:14
fl::audio::AudioManager::AudioManager
AudioManager() FL_NOEXCEPT=default
fl::audio::Config
Definition
input.h:150
fl::shared_ptr
Definition
shared_ptr.h:155
input.h
fl::audio
Definition
audio.cpp.hpp:15
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
noexcept.h
FL_NOEXCEPT
#define FL_NOEXCEPT
shared_ptr.h
fl
audio
audio_manager.h
Generated on Tue Jun 16 2026 00:06:58 for FastLED by
1.13.2