Package ej.audio
Class AudioFormat
- java.lang.Object
-
- ej.audio.AudioFormat
-
- Direct Known Subclasses:
Base64AudioFormat,Mp3AudioFormat,OggVorbisAudioFormat,PcmAudioFormat
public abstract class AudioFormat extends Object
Specifies the data format of an audio stream.
-
-
Constructor Summary
Constructors Constructor Description AudioFormat()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StringgetEncoding()Returns the encoding of this audio format.abstract int[]getParameters()Returns the parameters of this audio format.
-
-
-
Method Detail
-
getEncoding
public abstract String getEncoding()
Returns the encoding of this audio format.- Returns:
- the encoding.
-
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.
-
-