Class G729Encoder
Encodes 16-bit PCM audio samples into G.729 RTP payload bytes.
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class G729Encoder : Ld8k, IAudioEncoder
Constructors
| Edit this page View SourceG729Encoder()
Constructor
Declaration
public G729Encoder()
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 SourceCloseEncoder()
Closes the encoder so that it can release any memory or resources it has been using.
Declaration
public void CloseEncoder()
Encode(short[])
Encodes linear 16-bit PCM samples into G.729 encoded bytes to send as the payload of an RTP packet.
Declaration
public byte[] Encode(short[] InputSamples)
Parameters
Type | Name | Description |
---|---|---|
short[] | InputSamples | Input linear 16-bit PCM samples |
Returns
Type | Description |
---|---|
byte[] |