Class G729Decoder
Decodes G.729 encoded data into 16-bit PCM audio samples
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class G729Decoder : Ld8k, IAudioDecoder
Constructors
| Edit this page View SourceG729Decoder()
Constructor
Declaration
public G729Decoder()
Properties
| Edit this page View SourceClockRate
Gets the RTP clock rate in samples/second
Declaration
public int ClockRate { get; }
Property Value
Type | Description |
---|---|
int |
SampleRate
Gets the input audio sample rate in samples/second
Declaration
public int SampleRate { get; }
Property Value
Type | Description |
---|---|
int |
TimeStampIncrement
Amount to increment the RTP packet Time Stamp field by for each new packet.
Declaration
public uint TimeStampIncrement { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceCloseDecoder()
Closes the encoder so that it can release any memory or resources it has been using.
Declaration
public void CloseDecoder()
Decode(byte[])
Decodes G.729 encode bytes into 16-bit PCM samples.
Declaration
public short[] Decode(byte[] EncodedData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | EncodedData | The encoded data received in the payload of an RTP packet. |
Returns
Type | Description |
---|---|
short[] | Returns 16-bit PCM samples. |