FastLED 3.9.15
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_NOEXCEPT : mImpl(name) {}
8UIAudio::UIAudio(const fl::string& name, const fl::url& url) FL_NOEXCEPT : 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
fl::shared_ptr< audio::Processor > processor() FL_NOEXCEPT
Definition audio.cpp.hpp:22
UIAudioImpl mImpl
Definition audio.h:88
fl::shared_ptr< audio::Processor > mProcessor
Definition audio.h:90
~UIAudio() FL_NOEXCEPT
Definition audio.cpp.hpp:20
FL_NO_COPY(UIAudio) UIAudio(const fl UIAudio(const fl::string &name, const fl::url &url) FL_NOEXCEPT
Definition audio.cpp.hpp:8
const fl::optional< audio::Config > & config() const FL_NOEXCEPT
Definition audio.h:74
fl::optional< audio::Config > mConfig
Definition audio.h:89
Opaque handle to a sketch-local asset.
Definition asset.h:84
shared_ptr< Processor > add(const Config &config) FL_NOEXCEPT
static AudioManager & instance() FL_NOEXCEPT
Definition url.h:15
fl::url resolve_asset(const asset_ref &a) FL_NOEXCEPT
Resolve an asset handle to a URL (or local file path) at runtime.
constexpr asset_ref asset(const char *path) FL_NOEXCEPT
Construct an asset handle from a relative sketch path at runtime.
Definition asset.h:128
Base definition for an LED controller.
Definition crgb.hpp:179
#define FL_NOEXCEPT