API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfacePlayable
Implemented by audio assets (Sound, AudioStream, AudioGenerator) to support system-driven playback via AudioSystem.play. Assets are **data descriptors** - they hold the audio data and default playback parameters. The playback machinery lives in the Voice returned by `createVoice`; the system is injected at play time, so assets never reach for a global. `createVoice` is a low-level hook meant for asset implementations; consumers should call `audioSystem.play(asset)` instead of invoking it directly.
import { Playable } from '@codexo/exojs'Implemented by audio assets (Sound, AudioStream, AudioGenerator) to support system-driven playback via AudioSystem.play.
Assets are **data descriptors** - they hold the audio data and default playback parameters. The playback machinery lives in the Voice returned by `createVoice`; the system is injected at play time, so assets never reach for a global.
`createVoice` is a low-level hook meant for asset implementations; consumers should call `audioSystem.play(asset)` instead of invoking it directly.
createVoice(system: AudioSystemPer-Application owner of the audio mix: three pre-configured AudioBus instances (`master` ← `music` + `sound`), a single AudioListener for spatial audio, and a…, options: PlayOptionsPer-play overrides passed to AudioSystem.play.): VoiceA live playback instance in the audio graph with a control surface. A Voice is created by playing a Playable via AudioSystem.play (and, later, by opening an `A…