DriftScript bindings · function

audioImplementation

The implementations, which the host hands to a module's __bind.

Explained in Setting up scripts.

function audioImplementation(graph: AudioGraph, registry: SoundRegistry, kick?: KickDetector | null): Record<string, unknown>
import { audioImplementation } from '@driftengine/script';

Parameters

ParameterTypeDescription
graphAudioGraph
registrySoundRegistry
kick?KickDetector | null

In depth

A plain object rather than anything the registry holds — R2: the registry describes and never becomes the call path, so this is a separate thing that happens to have matching keys. The registry's implementation strings name these; nothing enforces that mechanically, which is why a test asserts every definition has an implementation here.