Table of Contents

Interface IAudioCodec

Namespace
DSharpPlus.VoiceLink.AudioCodecs
Assembly
DSharpPlus.VoiceLink.dll
public interface IAudioCodec

Methods

int DecodeOpus(bool hasPacketLoss, ReadOnlySpan<byte> input, Span<byte> output)

Parameters

hasPacketLoss bool
input ReadOnlySpan<byte>
output Span<byte>

Returns

int
int EncodeOpus(ReadOnlySequence<byte> input, Span<byte> output)

Parameters

input ReadOnlySequence<byte>
output Span<byte>

Returns

int
int GetMaxBufferSize()

Returns

int