Skip to content

OverflowCallback()

Callback type for overflow notifications.

type OverflowCallback = (droppedChunks, currentSize) => void;

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

Callback type for overflow notifications.

Parameters

ParameterTypeDescription
droppedChunksnumberNumber of chunks dropped in this overflow instance.
currentSizenumberCurrent buffer size after the drop.

Returns

void

Remarks

Invoked by AudioBufferQueue each time one or more chunks are dropped due to overflow (when the buffer is full and the strategy is 'drop-oldest' or 'drop-newest'). The orchestrator uses this to emit queue.overflow events.

See

AudioBufferQueue.onOverflow

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency