Xeno-rat
Loading...
Searching...
No Matches
NAudio.Codecs.MuLawDecoder Class Reference

mu-law decoder based on code from: http://hazelware.luggle.com/tutorials/mulawcompression.html More...

Collaboration diagram for NAudio.Codecs.MuLawDecoder:

Static Public Member Functions

static short MuLawToLinearSample (byte muLaw)
 Converts a mu-law encoded byte to a 16-bit linear PCM sample.
 

Static Private Attributes

static readonly short[] MuLawDecompressTable
 only 512 bytes required, so just use a lookup
 

Detailed Description

Member Function Documentation

◆ MuLawToLinearSample()

static short NAudio.Codecs.MuLawDecoder.MuLawToLinearSample ( byte muLaw)
inlinestatic

Converts a mu-law encoded byte to a 16-bit linear PCM sample.

Parameters
muLawThe mu-law encoded byte to be converted.
Returns
The 16-bit linear PCM sample corresponding to the input mu-law encoded byte.

Member Data Documentation

◆ MuLawDecompressTable

readonly short [] NAudio.Codecs.MuLawDecoder.MuLawDecompressTable
staticprivate

only 512 bytes required, so just use a lookup


The documentation for this class was generated from the following file: