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.
Afficher le fichier Open project: Wiladams/NewTOAPIA

Méthodes publiques

Méthode 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 méthode

public Encode ( int pcm ) : byte
pcm int
Résultat byte

Encode() public méthode

public Encode ( short pcm ) : byte
pcm short
Résultat byte

Encode() public méthode

public Encode ( byte data ) : byte[]
data byte
Résultat byte[]

Encode() public méthode

public Encode ( int data ) : byte[]
data int
Résultat byte[]

Encode() public méthode

public Encode ( short data ) : byte[]
data short
Résultat byte[]

Encode() public méthode

public Encode ( byte data, byte target ) : void
data byte
target byte
Résultat void