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
decoderOpusDecoderThe decoder.
opusReadOnlySpan<byte>The opus.
targetSpan<byte>The target.
useFecboolIf true, use fec.
outputFormatAudioFormatThe output format.