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
| Parameter | Type | Description |
|---|---|---|
droppedChunks | number | Number of chunks dropped in this overflow instance. |
currentSize | number | Current 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.