Table of Contents

Class OpusDecoder

Namespace
NetCord.Gateway.Voice
Assembly
NetCord.dll
public sealed class OpusDecoder : IDisposable
Inheritance
OpusDecoder
Implements
Inherited Members

Constructors

OpusDecoder(VoiceChannels)

public OpusDecoder(VoiceChannels channels)

Parameters

channels VoiceChannels

Number of channels to decode.

Exceptions

OpusException

Methods

Decode(ReadOnlySpan<byte>, Span<byte>)

Decodes an Opus frame.

public void Decode(ReadOnlySpan<byte> data, Span<byte> pcm)

Parameters

data ReadOnlySpan<byte>

Input payload. Use null to indicate packet loss.

pcm Span<byte>

Output signal.

Exceptions

OpusException

DecodeFloat(ReadOnlySpan<byte>, Span<byte>)

Decodes an Opus frame.

public void DecodeFloat(ReadOnlySpan<byte> data, Span<byte> pcm)

Parameters

data ReadOnlySpan<byte>

Input payload. Use null to indicate packet loss.

pcm Span<byte>

Output signal.

Exceptions

OpusException

Dispose()

public void Dispose()