Package com.microej.audiomockmp3
Class Mp3AudioDecoder
java.lang.Object
com.microej.audiomockmp3.Mp3AudioDecoder
- All Implemented Interfaces:
com.microej.audiomockdecoder.AudioDecoder
This class represents the implementation of the MP3 Decoder. In order to be used in mocks, it implements the
interface
AudioDecoder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()byte[]voidsetInputStream(InputStream inputStream) voidsetOutputFormat(AudioFormat newAudioFormat) voidsetParameters(int[] params)
-
Constructor Details
-
Mp3AudioDecoder
public Mp3AudioDecoder()
-
-
Method Details
-
getOutputFormat
- Specified by:
getOutputFormatin interfacecom.microej.audiomockdecoder.AudioDecoder
-
getName
- Specified by:
getNamein interfacecom.microej.audiomockdecoder.AudioDecoder
-
setParameters
public void setParameters(int[] params) - Specified by:
setParametersin interfacecom.microej.audiomockdecoder.AudioDecoder
-
setInputStream
- Specified by:
setInputStreamin interfacecom.microej.audiomockdecoder.AudioDecoder
-
setOutputFormat
- Specified by:
setOutputFormatin interfacecom.microej.audiomockdecoder.AudioDecoder
-
getNextFrame
- Specified by:
getNextFramein interfacecom.microej.audiomockdecoder.AudioDecoder- Throws:
IOException
-