API reference
Preparing search index…

AudioWorkerOptions

Audio Worker module and block queue configuration.

interface AudioWorkerOptions {
    blockFrames?: number;
    data?: unknown;
    exportName?: string;
    module: string | URL;
    queueBlocks?: number;
}
Type hierarchy

Hierarchy (View Summary)

Source & inheritance
Member directory5

Properties

Properties

blockFrames?: number

Frames per block, defaulting to 1024; a frame contains samples for all channels.

Source & inheritance
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
queueBlocks?: number

Number of blocks in the native queue, defaulting to 8.

Source & inheritance

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