Class OpusDecoder
public sealed class OpusDecoder : IDisposable
- Inheritance
-
OpusDecoder
- Implements
- Inherited Members
Constructors
OpusDecoder(VoiceChannels)
public OpusDecoder(VoiceChannels channels)
Parameters
channels
VoiceChannelsNumber of channels to decode.
Exceptions
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
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
Dispose()
public void Dispose()