C# Class Xamarin.Forms.Conference.WebRTC.iOS.Opus.OpusCodec

Opus codec wrapper for Xamarin.iOS.
Inheritance: AudioCodec
显示文件 Open project: QuickBlox/quickblox-dotnet-sdk

Public Methods

Method Description
Decode ( byte encodedFrame ) : AudioBuffer

Decodes an encoded frame.

Depacketize ( RTPPacket packet ) : byte[]

Depacketizes a packet.

Destroy ( ) : void

Destroys the codec.

Encode ( AudioBuffer frame ) : byte[]

Encodes a frame.

OpusCodec ( ) : System

Initializes a new instance of the OpusCodec class.

Packetize ( byte encodedFrame ) : RTPPacket[]

Packetizes an encoded frame.

ProcessRTCP ( RTCPPacket packets ) : void

Processes RTCP packets.

Private Methods

Method Description
Decode ( byte encodedFrame, bool fec ) : AudioBuffer
DecodeFEC ( byte encodedFrame ) : AudioBuffer
DecodeNormal ( byte encodedFrame ) : AudioBuffer
DecodePLC ( ) : AudioBuffer

Method Details

Decode() public method

Decodes an encoded frame.
public Decode ( byte encodedFrame ) : AudioBuffer
encodedFrame byte The encoded frame.
return AudioBuffer

Depacketize() public method

Depacketizes a packet.
public Depacketize ( RTPPacket packet ) : byte[]
packet RTPPacket The packet.
return byte[]

Destroy() public method

Destroys the codec.
public Destroy ( ) : void
return void

Encode() public method

Encodes a frame.
public Encode ( AudioBuffer frame ) : byte[]
frame AudioBuffer The frame.
return byte[]

OpusCodec() public method

Initializes a new instance of the OpusCodec class.
public OpusCodec ( ) : System
return System

Packetize() public method

Packetizes an encoded frame.
public Packetize ( byte encodedFrame ) : RTPPacket[]
encodedFrame byte The encoded frame.
return RTPPacket[]

ProcessRTCP() public method

Processes RTCP packets.
public ProcessRTCP ( RTCPPacket packets ) : void
packets RTCPPacket The packets to process.
return void