API reference
Class Opus
- Namespace
- DisCatSharp.Voice.Codec
- Assembly
- DisCatSharp.Voice.dll
The opus.
public class Opus : IDisposable
- Inheritance
-
Opus
- Implements
- Inherited Members
Constructors
- Opus(AudioFormat)
Initializes a new instance of the Opus class.
Properties
- AudioFormat
Gets the audio format.
Methods
- CreateDecoder()
Creates the decoder.
- DestroyDecoder(OpusDecoder?)
Destroys the decoder.
- Dispose()
Disposes the Opus.
- Encode(ReadOnlySpan<byte>, ref Span<byte>)
Encodes the Opus.
- GetLastPacketSampleCount(OpusDecoder)
Gets the last packet sample count.
- ProcessPacketLoss(OpusDecoder, int, ref Span<byte>)
Processes the packet loss.