API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classAudioUnsupportedError

@codexo/exojs / audio / stable

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.

5
props
0
methods
0
events
Import
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.

Constructors1
new(api: string): AudioUnsupportedError
Properties5
api: string
The global or method the environment does not provide.
cause?: unknown
message: string
name: string
stack?: string
Source