Package ws.schild.jave
Class AudioInfo
- java.lang.Object
-
- ws.schild.jave.AudioInfo
-
public class AudioInfo extends java.lang.ObjectInstances of this class report informations about an audio stream that can be decoded.- Author:
- Carlo Pelliccia
-
-
Constructor Summary
Constructors Constructor Description AudioInfo()
-
Method Summary
Modifier and Type Method Description intgetBitRate()Returns the audio stream (average) bit rate.intgetChannels()Returns the audio stream channels number (1=mono, 2=stereo).java.lang.StringgetDecoder()Returns the audio stream decoder name.intgetSamplingRate()Returns the audio stream sampling rate.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-