API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classAudioUnsupportedError
Raised when the host environment provides no Web Audio API at all - a missing `AudioContext`, `OfflineAudioContext`, or `getUserMedia`. Distinct from a decode or playback failure on purpose: a decode failure is about one file and the rest of the audio system keeps working, while this means audio is unavailable for the lifetime of the page. Callers branch on it to disable audio features outright instead of retrying or skipping a single asset.
import { AudioUnsupportedError } from '@codexo/exojs'Raised when the host environment provides no Web Audio API at all - a missing `AudioContext`, `OfflineAudioContext`, or `getUserMedia`.
Distinct from a decode or playback failure on purpose: a decode failure is about one file and the rest of the audio system keeps working, while this means audio is unavailable for the lifetime of the page. Callers branch on it to disable audio features outright instead of retrying or skipping a single asset.
new(api: string): AudioUnsupportedErrorapi: stringcause?: unknownmessage: stringname: stringstack?: string