Package ej.audio
Class AudioFormat
java.lang.Object
ej.audio.AudioFormat
- Direct Known Subclasses:
Base64AudioFormat,G711AudioFormat,PcmAudioFormat
Specifies the data format of an audio stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the data format of an audio stream.abstract int[]Returns the parameters of this audio format.
-
Constructor Details
-
AudioFormat
public AudioFormat()
-
-
Method Details
-
getEncoding
Returns the data format of an audio stream.- Returns:
- the encoding format string.
-
getParameters
public abstract int[] getParameters()Returns 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.
- Returns:
- the parameters.
-