FastLED 3.10.8
Loading...
Searching...
No Matches
audio.cpp.hpp
Go to the documentation of this file.
1#include "fl/ui/audio.h"
3#include "fl/stl/noexcept.h"
4
5namespace fl {
6
7UIAudio::UIAudio(const fl::string& name) FL_NO_EXCEPT : mImpl(name) {}
8UIAudio::UIAudio(const fl::string& name, const fl::url& url) FL_NO_EXCEPT : mImpl(name, url) {}
9
10// Asset-handle overload (issue #2284): resolves the asset via the
11// v1 asset pipeline (registry + host/stub filesystem fallback) and
12// forwards to the url-based ctor. If resolution fails, we forward
13// the unresolved url so the consumer still sees a url field — the
14// existing JsonAudioImpl code emits an empty string for an invalid
15// url, matching the name-only behavior.
18
21
28
29} // namespace fl
UIAudioImpl mImpl
Definition audio.h:88
~UIAudio() FL_NO_EXCEPT
Definition audio.cpp.hpp:20
FL_NO_COPY(UIAudio) UIAudio(const fl UIAudio(const fl::string &name, const fl::url &url) FL_NO_EXCEPT
Definition audio.cpp.hpp:8
const fl::optional< audio::Config > & config() const FL_NO_EXCEPT
Definition audio.h:74
fl::shared_ptr< audio::Processor > mProcessor
Definition audio.h:90
fl::shared_ptr< audio::Processor > processor() FL_NO_EXCEPT
Definition audio.cpp.hpp:22
fl::optional< audio::Config > mConfig
Definition audio.h:89
Opaque handle to a sketch-local asset.
Definition asset.h:86
static AudioManager & instance() FL_NO_EXCEPT
shared_ptr< Processor > add(const Config &config) FL_NO_EXCEPT
Definition url.h:15
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
fl::url resolve_asset(const asset_ref &a) FL_NO_EXCEPT
Resolve an asset handle to a URL (or local file path) at runtime.
constexpr asset_ref asset(const char *path) FL_NO_EXCEPT
Construct an asset handle from a relative sketch path at runtime.
Definition asset.h:130
Base definition for an LED controller.
Definition crgb.hpp:179