Interface IAudioDecoder
Interface definition for an audio decoder
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public interface IAudioDecoder
Properties
| Edit this page View SourceSampleRate
Gets the sample rate in samples/second
Declaration
int SampleRate { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceCloseDecoder()
Closes the decoder so that it can release any memory or resources it has been using.
Declaration
void CloseDecoder()
Decode(byte[])
Decodes the input byte array into array of 16-bit PCMU audio samples.
Declaration
short[] Decode(byte[] EncodedData)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | EncodedData | Input array of encoded audio from the payload of an RTP packet |
Returns
| Type | Description |
|---|---|
| short[] | Returns an array of linear 16-bit PCMU samples. Returns null if an error occurred. |