Class Mp3AudioDecoder

java.lang.Object
com.microej.audiomockmp3.Mp3AudioDecoder
All Implemented Interfaces:
com.microej.audiomockdecoder.AudioDecoder

public class Mp3AudioDecoder extends Object implements 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 Details

    • Mp3AudioDecoder

      public Mp3AudioDecoder()
  • Method Details

    • getOutputFormat

      public AudioFormat getOutputFormat()
      Specified by:
      getOutputFormat in interface com.microej.audiomockdecoder.AudioDecoder
    • getName

      public String getName()
      Specified by:
      getName in interface com.microej.audiomockdecoder.AudioDecoder
    • setParameters

      public void setParameters(int[] params)
      Specified by:
      setParameters in interface com.microej.audiomockdecoder.AudioDecoder
    • setInputStream

      public void setInputStream(InputStream inputStream)
      Specified by:
      setInputStream in interface com.microej.audiomockdecoder.AudioDecoder
    • setOutputFormat

      public void setOutputFormat(AudioFormat newAudioFormat)
      Specified by:
      setOutputFormat in interface com.microej.audiomockdecoder.AudioDecoder
    • getNextFrame

      public byte[] getNextFrame() throws IOException
      Specified by:
      getNextFrame in interface com.microej.audiomockdecoder.AudioDecoder
      Throws:
      IOException