Package ej.audio.format
Class G711AudioFormat
- java.lang.Object
-
- ej.audio.AudioFormat
-
- ej.audio.format.G711AudioFormat
-
public class G711AudioFormat extends AudioFormat
AudioFormatwhich represents the format of an audio sink with the G711 encoding.
-
-
Field Summary
Fields Modifier and Type Field Description static intALAW_ALGORITHMG711 ALAW encoding algorithm.static intULAW_ALGORITHMG711 ULAW encoding algorithm.
-
Constructor Summary
Constructors Constructor Description G711AudioFormat(int numChannels, int algorithm)Creates a G711 audio format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncoding()Returns the data format of an audio stream.int[]getParameters()Returns the parameters of this audio format.
-
-
-
Field Detail
-
ULAW_ALGORITHM
public static final int ULAW_ALGORITHM
G711 ULAW encoding algorithm.- See Also:
- Constant Field Values
-
ALAW_ALGORITHM
public static final int ALAW_ALGORITHM
G711 ALAW encoding algorithm.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncoding
public String getEncoding()
Description copied from class:AudioFormatReturns the data format of an audio stream.- Specified by:
getEncodingin classAudioFormat- Returns:
- the encoding format string.
-
getParameters
public int[] getParameters()
Description copied from class:AudioFormatReturns the parameters of this audio format.The parameters depend on the encoding. The semantics of every parameter is known by the low-level audio implementation.
- Specified by:
getParametersin classAudioFormat- Returns:
- the parameters.
-
-