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

◆ UIAudio() [2/3]

fl::UIAudio::UIAudio ( const fl::string & name,
const fl::asset_ref & asset )

Asset-handle overload (issue #2284).

Resolves asset via fl::resolve_asset() at construction time: the manifest/registry is consulted first, then (on host/stub) the local filesystem and sibling .lnk. If resolution succeeds, forwards to the url() constructor; otherwise behaves like the name-only constructor.

Definition at line 16 of file audio.cpp.hpp.

17 : mImpl(name, fl::resolve_asset(asset)) {}
UIAudioImpl mImpl
Definition audio.h:88
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

References fl::asset(), FL_NOEXCEPT, mImpl, and fl::resolve_asset().

+ Here is the call graph for this function: