C# Class NewTOAPIA.Media.G711AudioEncoder

G.711 is a standard for encoding waveform audio. The standard comes in two flavors, MuLaw, and ALaw. This class 'G711AudioEncoder' serves as an abstract base for the two variants of the standard. As all the implementation is based on lookups into arrays, the sublcassers only need to implement the lookup array. The base class will perform the data conversions.
Mostra file Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
Encode ( int pcm ) : byte
Encode ( short pcm ) : byte
Encode ( byte data ) : byte[]
Encode ( int data ) : byte[]
Encode ( short data ) : byte[]
Encode ( byte data, byte target ) : void

Method Details

Encode() public method

public Encode ( int pcm ) : byte
pcm int
return byte

Encode() public method

public Encode ( short pcm ) : byte
pcm short
return byte

Encode() public method

public Encode ( byte data ) : byte[]
data byte
return byte[]

Encode() public method

public Encode ( int data ) : byte[]
data int
return byte[]

Encode() public method

public Encode ( short data ) : byte[]
data short
return byte[]

Encode() public method

public Encode ( byte data, byte target ) : void
data byte
target byte
return void