Class PcmaEncoder
Class for encoding linear 16-bit PCM samples into PCMA (G.711 A-Law) samples
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class PcmaEncoder : IAudioEncoder
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 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 PCMA (G.711 A-Law) samples
Declaration
public byte[] Encode(short[] InputSamples)
Parameters
Type | Name | Description |
---|---|---|
short[] | InputSamples | Input linear 16-bit Mu-Law samples |
Returns
Type | Description |
---|---|
byte[] | Returns a byte array containing the encoded input samples |