DriftScript bindings · const

AUDIO_TYPES

A decoded sound, held by a script and passed back to the engine.

Explained in Setting up scripts.

const AUDIO_TYPES: readonly OpaqueType[]
import { AUDIO_TYPES } from '@driftengine/script';

In depth

Opaque on purpose: it is an AudioBuffer, and a script that could read its fields would be a script depending on a representation the engine cannot then change. The design calls these safe handles, and this is one.