javazoom.spi.mpeg.sampled.convert
Class DecodedMpegAudioInputStream
java.lang.Object
java.io.InputStream
javax.sound.sampled.AudioInputStream
org.tritonus.share.sampled.convert.TAudioInputStream
org.tritonus.share.sampled.convert.TAsynchronousFilteredAudioInputStream
javazoom.spi.mpeg.sampled.convert.DecodedMpegAudioInputStream
- All Implemented Interfaces:
- Closeable, EventListener, TagParseListener, PropertiesContainer, TCircularBuffer.Trigger
public class DecodedMpegAudioInputStream
- extends TAsynchronousFilteredAudioInputStream
- implements PropertiesContainer, TagParseListener
Main decoder.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecodedMpegAudioInputStream
public DecodedMpegAudioInputStream(AudioFormat outputFormat,
AudioInputStream inputStream)
properties
public Map properties()
- Return dynamic properties.
- mp3.frame [Long], current frame position.
- mp3.frame.bitrate [Integer], bitrate of the current frame.
- mp3.frame.size.bytes [Integer], size in bytes of the current frame.
- mp3.position.byte [Long], current position in bytes in the stream.
- mp3.position.microseconds [Long], elapsed microseconds.
- mp3.equalizer float[32], interactive equalizer array, values could be in [-1.0, +1.0].
- mp3.shoutcast.metadata.key [String], Shoutcast meta key with matching value.
For instance :
mp3.shoutcast.metadata.StreamTitle=Current song playing in stream.
mp3.shoutcast.metadata.StreamUrl=Url info.
- Specified by:
properties in interface PropertiesContainer- Overrides:
properties in class TAudioInputStream
execute
public void execute()
- Specified by:
execute in interface TCircularBuffer.Trigger
skip
public long skip(long bytes)
- Overrides:
skip in class TAsynchronousFilteredAudioInputStream
skipFrames
public long skipFrames(long frames)
- Skip frames.
You don't need to call it severals times, it will exactly skip given frames number.
- Parameters:
frames -
- Returns:
- bytes length skipped matching to frames skipped.
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class TAsynchronousFilteredAudioInputStream
- Throws:
IOException
tagParsed
public void tagParsed(TagParseEvent tpe)
- Description copied from interface:
TagParseListener
- Called when a tag is found (parsed from the stream,
received via UDP, etc.)
- Specified by:
tagParsed in interface TagParseListener
Copyright © 2012. All Rights Reserved.