Skip to content

DrainCallback()

Callback type for the drain consumer.

type DrainCallback = (chunk) => void;

Defined in: src/core/pipeline/AudioBufferQueue.ts:152

Callback type for the drain consumer.

Parameters

ParameterTypeDescription
chunkAudioChunkThe audio chunk to process.

Returns

void

Remarks

Invoked by AudioBufferQueue for each chunk when draining — both during the initial flush of buffered chunks and for subsequent pass-through enqueues.

See

AudioBufferQueue.startDraining

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency