it.sauronsoftware.jave
Class AudioInfo

java.lang.Object
  extended by it.sauronsoftware.jave.AudioInfo

public class AudioInfo
extends java.lang.Object

Instances of this class report informations about an audio stream that can be decoded.

Author:
Carlo Pelliccia

Constructor Summary
AudioInfo()
           
 
Method Summary
 int getBitRate()
          Returns the audio stream (average) bit rate.
 int getChannels()
          Returns the audio stream channels number (1=mono, 2=stereo).
 java.lang.String getDecoder()
          Returns the audio stream decoder name.
 int getSamplingRate()
          Returns the audio stream sampling rate.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioInfo

public AudioInfo()
Method Detail

getDecoder

public java.lang.String getDecoder()
Returns the audio stream decoder name.

Returns:
The audio stream decoder name.

getSamplingRate

public int getSamplingRate()
Returns the audio stream sampling rate. If less than 0, this information is not available.

Returns:
The audio stream sampling rate.

getChannels

public int getChannels()
Returns the audio stream channels number (1=mono, 2=stereo). If less than 0, this information is not available.

Returns:
the channels The audio stream channels number (1=mono, 2=stereo).

getBitRate

public int getBitRate()
Returns the audio stream (average) bit rate. If less than 0, this information is not available.

Returns:
The audio stream (average) bit rate.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object