Package ej.audio.mp3

Class Mp3Parser

java.lang.Object
ej.audio.mp3.Mp3Parser

public class Mp3Parser extends Object
  • Field Details

  • Method Details

    • getFormatParameters

      public static Mp3Parser.Mp3Parameters getFormatParameters(InputStream inputStream) throws ej.audio.AudioException, IOException
      Extracts audio format parameters (sample rate and number of channels) from the header of an MP3 input stream.
      Parameters:
      inputStream - the MP3 input stream
      Returns:
      an Mp3Parser.Mp3Parameters containing sample rate and number of channels
      Throws:
      ej.audio.AudioException - when format is not recognized
      IOException - when inputStream cannot be read