Class AmrWbDecoder
Class for decoding AMR-WB encoded audio data into 16-bit linear PCM samples
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class AmrWbDecoder : IAudioDecoder
Constructors
| Edit this page View SourceAmrWbDecoder()
Constructor. Initializes the decoder
Declaration
public AmrWbDecoder()
Properties
| Edit this page View SourceSampleRate
Gets the sample rate in samples per second
Declaration
public int SampleRate { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceCloseDecoder()
Closes the decoder
Declaration
public void CloseDecoder()
Decode(byte[])
Decodes the AMR-WB encoded data from the payload of an RTP packet into linear 16-bit PCM samples. Sections 4.2 and 4.3 of RFC 4867 describe the format of the RTP packet payload for the AMR-WB codec.
Declaration
public short[] Decode(byte[] EncodedData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | EncodedData | AMR-WB encoded input data. |
Returns
Type | Description |
---|---|
short[] |