A-law encoder.
More...
static byte LinearToALawSample (short sample)
Converts a linear PCM sample to A-law format.
◆ LinearToALawSample()
static byte NAudio.Codecs.ALawEncoder.LinearToALawSample
(
short sample )
inline static
Converts a linear PCM sample to A-law format.
Parameters
sample The linear PCM sample to be converted.
Returns The A-law compressed byte representation of the input sample .
This method converts a linear PCM sample to A-law format as per the ITU-T G.711 specification. It first determines the sign, exponent, and mantissa of the input sample and then compresses it to A-law format. The resulting A-law compressed byte is returned as the output.
◆ ALawCompressTable
readonly byte [] NAudio.Codecs.ALawEncoder.ALawCompressTable
static private
Initial value: = new byte [128]
{
1,1,2,2,3,3,3,3,
4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,
5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,
6,6,6,6,6,6,6,6,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,
7,7,7,7,7,7,7,7
}
◆ cBias
const int NAudio.Codecs.ALawEncoder.cBias = 0x84
static private
◆ cClip
const int NAudio.Codecs.ALawEncoder.cClip = 32635
static private
The documentation for this class was generated from the following file:
/Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Codecs/ALawEncoder.cs