javazoom.spi.mpeg.sampled.convert
Class DecodedMpegAudioInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.sound.sampled.AudioInputStream
          extended by org.tritonus.share.sampled.convert.TAudioInputStream
              extended by org.tritonus.share.sampled.convert.TAsynchronousFilteredAudioInputStream
                  extended by 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.


Field Summary
 
Fields inherited from class org.tritonus.share.sampled.convert.TAsynchronousFilteredAudioInputStream
m_circularBuffer
 
Fields inherited from class javax.sound.sampled.AudioInputStream
format, frameLength, framePos, frameSize
 
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)
          Called when a tag is found (parsed from the stream, received via UDP, etc.)
 
Methods inherited from class org.tritonus.share.sampled.convert.TAsynchronousFilteredAudioInputStream
available, getCircularBuffer, mark, markSupported, read, read, read, reset, writeMore
 
Methods inherited from class org.tritonus.share.sampled.convert.TAudioInputStream
setProperty
 
Methods inherited from class javax.sound.sampled.AudioInputStream
getFormat, getFrameLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecodedMpegAudioInputStream

public DecodedMpegAudioInputStream(AudioFormat outputFormat,
                                   AudioInputStream inputStream)
Method Detail

properties

public Map properties()
Return dynamic properties.

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.