API reference
Preparing search index…

AudioWorkerModule

A module export is a factory receiving context and structured-clone data.

interface AudioWorkerModule {
    data?: unknown;
    exportName?: string;
    module: string | URL;
}
Type hierarchy

Hierarchy (View Summary)

Source & inheritance
Member directory3

Properties

Properties

data?: unknown

Initial data passed to the factory through structured cloning.

Source & inheritance
exportName?: string

Factory export name; uses the default export when omitted.

Source & inheritance
module: string | URL

Module path or URL loaded by the Worker, exporting an audio callback factory.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0