Class G722Decoder
Class for decoding G.722 encoded data into linear 16-bit PCM samples.
Implements
Inherited Members
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public class G722Decoder : IAudioDecoder
Constructors
| Edit this page View SourceG722Decoder()
Constructor
Declaration
public G722Decoder()
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 G.722
Declaration
public void CloseDecoder()
Decode(byte[])
Decodes the input byte array containing G.722 encoded 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. |