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
| Parameter | Type | Description |
|---|---|---|
chunk | AudioChunk | The 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.