Table of Contents
API reference

Method ReadFramesAsync

Namespace
DisCatSharp.Voice.Interfaces
Assembly
DisCatSharp.Voice.dll

ReadFramesAsync(CancellationToken)

Asynchronously reads Opus frames from the external source.

IAsyncEnumerable<ExternalOpusFrame> ReadFramesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token to cancel the read operation.

Returns

IAsyncEnumerable<ExternalOpusFrame>

An async enumerable of ExternalOpusFrame instances.