Class G722Encoder
Class for encoding audio samples using a G.722 encoder.
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class G722Encoder : IAudioEncoder
Constructors
| Edit this page View SourceG722Encoder()
Constructor
Declaration
public G722Encoder()
Properties
| Edit this page View SourceClockRate
Gets the clock rate
Declaration
public int ClockRate { get; }
Property Value
| Type | Description |
|---|---|
| int |
SampleRate
Gets the 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 -- nothing to do for this codec.
Declaration
public void CloseEncoder()
Encode(short[])
Encodes the input samples into G.722 encoded audio
Declaration
public byte[] Encode(short[] InputSamples)
Parameters
| Type | Name | Description |
|---|---|---|
| short[] | InputSamples | Raw input samples |
Returns
| Type | Description |
|---|---|
| byte[] | Returns the encoded byte array. |