Class PcmuDecoder
Class for decoding PCMU (Mu-Law) encoded data into linear 16-bit PCM samples.
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class PcmuDecoder : IAudioDecoder
Properties
| Edit this page View SourceSampleRate
Gets the sample rate in samples/second.
Declaration
public int SampleRate { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceCloseDecoder()
Closes the decoder. Not necessary for PCMU (Mu-Law)
Declaration
public void CloseDecoder()
Decode(byte[])
Decodes the input byte array containing PCMU (Mu-Law) data and returns an array of audio samples.
Declaration
public short[] Decode(byte[] EncodedData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | EncodedData | Input data to decode |
Returns
Type | Description |
---|---|
short[] | Returns an array of linear 16-bit PCM audio data. |