javazoom.spi.mpeg.sampled.convert
Class DecodedMpegAudioInputStream

java.lang.Object
  extended by TAsynchronousFilteredAudioInputStream
      extended by javazoom.spi.mpeg.sampled.convert.DecodedMpegAudioInputStream
All Implemented Interfaces:
java.util.EventListener, TagParseListener, PropertiesContainer

public class DecodedMpegAudioInputStream
extends TAsynchronousFilteredAudioInputStream
implements PropertiesContainer, TagParseListener

Main decoder.


Constructor Summary
DecodedMpegAudioInputStream(javax.sound.sampled.AudioFormat outputFormat, javax.sound.sampled.AudioInputStream inputStream)
           
 
Method Summary
 void close()
           
 void execute()
           
 java.util.Map properties()
          Return dynamic properties.
 long skip(long bytes)
           
 long skipFrames(long frames)
          Skip frames.
 void tagParsed(TagParseEvent tpe)
          Called when a tag is found (parsed from the stream, received via UDP, etc.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecodedMpegAudioInputStream

public DecodedMpegAudioInputStream(javax.sound.sampled.AudioFormat outputFormat,
                                   javax.sound.sampled.AudioInputStream inputStream)
Method Detail

properties

public java.util.Map properties()
Return dynamic properties.

Specified by:
properties in interface PropertiesContainer

execute

public void execute()

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.

close

public void close()
           throws java.io.IOException
Throws:
java.io.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


JavaZOOM 1999-2005