Table of Contents
API reference

Method Decode

Namespace
DisCatSharp.Voice.Codec
Assembly
DisCatSharp.Voice.dll

Decode(OpusDecoder, ReadOnlySpan<byte>, ref Span<byte>, bool, out AudioFormat)

Decodes the Opus.

public void Decode(OpusDecoder decoder, ReadOnlySpan<byte> opus, ref Span<byte> target, bool useFec, out AudioFormat outputFormat)

Parameters

decoder OpusDecoder

The decoder.

opus ReadOnlySpan<byte>

The opus.

target Span<byte>

The target.

useFec bool

If true, use fec.

outputFormat AudioFormat

The output format.