API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSoundFactory
AssetFactory implementation that loads short audio assets (MP3, OGG, WAV, AAC, and other Web Audio API-supported formats), fully decodes them into an AudioBuffer, and produces a Sound instance ready for low-latency playback. For long-form background music use MusicFactory instead, which streams audio without up-front decoding. Supports audio sprite sheets via the `sprites` option.
import { SoundFactory } from '@codexo/exojs' AssetFactory implementation that loads short audio assets (MP3, OGG, WAV, AAC, and other Web Audio API-supported formats), fully decodes them into an AudioBuffer, and produces a Sound instance ready for low-latency playback.
For long-form background music use MusicFactory instead, which streams audio without up-front decoding. Supports audio sprite sheets via the `sprites` option.
new(): SoundFactory create(source: ArrayBuffer, options: SoundFactoryOptions): Promise<Sound> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<ArrayBuffer> revokeObjectUrl(objectUrl: string): void storageName: "sound"