API reference
Method QueueOwnedPcmOverlayAsync
- Namespace
- DisCatSharp.Voice.Entities
- Assembly
- DisCatSharp.Voice.dll
QueueOwnedPcmOverlayAsync(Stream, string?, CancellationToken)
Queues a PCM overlay job and disposes the stream when playback completes.
public ValueTask QueueOwnedPcmOverlayAsync(Stream pcmStream, string? name = null, CancellationToken cancellationToken = default)
Parameters
pcmStreamStreamThe PCM audio stream to play. Ownership transfers to the controller.
namestringAn optional display name for the overlay (used for diagnostics).
cancellationTokenCancellationTokenA token to cancel the queue operation.