Interface IAudioEncoder
Interface definition for an audio encoder
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public interface IAudioEncoder
Properties
| Edit this page View SourceClockRate
Gets the clock rate (samples/second)
Declaration
int ClockRate { get; }
Property Value
Type | Description |
---|---|
int |
SampleRate
Gets the sample rate in samples/second.
Declaration
int SampleRate { get; }
Property Value
Type | Description |
---|---|
int |
TimeStampIncrement
Amount to increment the RTP packet Time Stamp field by for each new packet.
Declaration
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
void CloseEncoder()
Encode(short[])
Encodes an input sample array of 16-bit PCMU audio samples into a byte array that can be sent as the payload of an RTP packet.
Declaration
byte[] Encode(short[] InputSamples)
Parameters
Type | Name | Description |
---|---|---|
short[] | InputSamples | Input linear 16-bit Mu-Law samples |
Returns
Type | Description |
---|---|
byte[] | Returns an array of encoded sample bytes |