javazoom.spi.mpeg.sampled.convert

Class DecodedMpegAudioInputStream

Implemented Interfaces:
EventListener, PropertiesContainer, TagParseListener

public class DecodedMpegAudioInputStream
extends TAsynchronousFilteredAudioInputStream
implements PropertiesContainer, TagParseListener

Main decoder.

Constructor Summary

DecodedMpegAudioInputStream(AudioFormat outputFormat, AudioInputStream inputStream)

Method Summary

void
close()
void
execute()
Map
properties()
Return dynamic properties.
long
skip(long bytes)
long
skipFrames(long frames)
Skip frames.
void
tagParsed(TagParseEvent tpe)

Constructor Details

DecodedMpegAudioInputStream

public DecodedMpegAudioInputStream(AudioFormat outputFormat,
                                   AudioInputStream inputStream)

Method Details

close

public void close()
            throws IOException

execute

public void execute()

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

skip

public long skip(long bytes)

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.

tagParsed

public void tagParsed(TagParseEvent tpe)
Specified by:
tagParsed in interface TagParseListener

JavaZOOM 1999-2005