← API
TypeAlias

ResolvedAsset

Anything an `AssetResolver` is allowed to return: - `AudioBuffer` — already decoded, used as-is. - `ArrayBuffer` — encoded bytes; zvuk decodes via the engine's AudioContext. - `string` — a URL; zvuk fetches and decodes via its normal loader (and the cache). - `undefined` / `null` — explicit "I don't have this" — falls through to the URL list passed to `loadSound` (or throws if none was given).