API reference
Method ReadFramesAsync
- Namespace
- DisCatSharp.Voice.Entities
- Assembly
- DisCatSharp.Voice.dll
ReadFramesAsync(CancellationToken)
Asynchronously reads Opus frames from the external source.
public IAsyncEnumerable<ExternalOpusFrame> ReadFramesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenToken to cancel the read operation.
Returns
- IAsyncEnumerable<ExternalOpusFrame>
An async enumerable of ExternalOpusFrame instances.