Language

OutputAudioQueue.BufferCompleted Event

Definition

Raised when the output audio queue has finished playing a buffer, making it available to be refilled with more audio data and re-enqueued.

public event EventHandler<AudioToolbox.BufferCompletedEventArgs>? BufferCompleted;
member this.BufferCompleted : EventHandler<AudioToolbox.BufferCompletedEventArgs> 

Event Type

Remarks

The completed buffer is provided in the event arguments. Handlers typically fill the buffer with the next chunk of audio and enqueue it again with one of the EnqueueBuffer methods to keep playback going.

Applies to