Table of Contents

Class OpusDecodeStream

Namespace
NetCord.Gateway.Voice
Assembly
NetCord.dll
public class OpusDecodeStream : RewritingStream, IDisposable, IAsyncDisposable
Inheritance
OpusDecodeStream
Implements
Inherited Members

Constructors

OpusDecodeStream(Stream, PcmFormat, VoiceChannels)

public OpusDecodeStream(Stream next, PcmFormat format, VoiceChannels channels)

Parameters

next Stream

The stream that this stream is writing to.

format PcmFormat

The PCM format to decode to.

channels VoiceChannels

Number of channels to decode.

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

Write(ReadOnlySpan<byte>)

public override void Write(ReadOnlySpan<byte> buffer)

Parameters

buffer ReadOnlySpan<byte>

WriteAsync(ReadOnlyMemory<byte>, CancellationToken)

public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)

Parameters

buffer ReadOnlyMemory<byte>
cancellationToken CancellationToken

Returns

ValueTask