Interface Mp3Decoder


public interface Mp3Decoder
You can obtain an instance of this class by calling VoicechatApi.createMp3Decoder(java.io.InputStream).
  • Method Summary

    Modifier and Type
    Method
    Description
    short[]
    Decodes the MP3 file and returns the decoded audio data as PCM samples.
    Decodes the MP3 file if decode() has not been called before.
    int
    Decodes the MP3 file if decode() has not been called before.
  • Method Details

    • decode

      short[] decode() throws IOException
      Decodes the MP3 file and returns the decoded audio data as PCM samples.
      Returns:
      the decoded audio data as PCM samples
      Throws:
      IOException - if an I/O error occurs
    • getAudioFormat

      AudioFormat getAudioFormat() throws IOException
      Decodes the MP3 file if decode() has not been called before.
      Returns:
      the audio format of the decoded audio data
      Throws:
      IOException - if an I/O error occurs
    • getBitrate

      int getBitrate() throws IOException
      Decodes the MP3 file if decode() has not been called before.
      Returns:
      the bitrate of the mp3 file
      Throws:
      IOException - if an I/O error occurs