com.jme3.audio.plugins
Class UncachedOggStream

java.lang.Object
  extended by com.jme3.audio.plugins.UncachedOggStream
All Implemented Interfaces:
de.jarnbjo.ogg.PhysicalOggStream

public class UncachedOggStream
extends java.lang.Object
implements de.jarnbjo.ogg.PhysicalOggStream

Single-threaded physical ogg stream. Decodes audio in the same thread that reads.


Constructor Summary
UncachedOggStream(java.io.InputStream in)
           
 
Method Summary
 void close()
           
 de.jarnbjo.ogg.OggPage getLastOggPage()
           
 java.util.Collection<de.jarnbjo.ogg.LogicalOggStream> getLogicalStreams()
           
 de.jarnbjo.ogg.OggPage getOggPage(int index)
           
 boolean isOpen()
           
 boolean isSeekable()
           
 void setTime(long granulePosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UncachedOggStream

public UncachedOggStream(java.io.InputStream in)
                  throws de.jarnbjo.ogg.OggFormatException,
                         java.io.IOException
Throws:
de.jarnbjo.ogg.OggFormatException
java.io.IOException
Method Detail

getLastOggPage

public de.jarnbjo.ogg.OggPage getLastOggPage()

getOggPage

public de.jarnbjo.ogg.OggPage getOggPage(int index)
                                  throws java.io.IOException
Specified by:
getOggPage in interface de.jarnbjo.ogg.PhysicalOggStream
Throws:
java.io.IOException

getLogicalStreams

public java.util.Collection<de.jarnbjo.ogg.LogicalOggStream> getLogicalStreams()
Specified by:
getLogicalStreams in interface de.jarnbjo.ogg.PhysicalOggStream

setTime

public void setTime(long granulePosition)
             throws java.io.IOException
Specified by:
setTime in interface de.jarnbjo.ogg.PhysicalOggStream
Throws:
java.io.IOException

isSeekable

public boolean isSeekable()
Specified by:
isSeekable in interface de.jarnbjo.ogg.PhysicalOggStream

isOpen

public boolean isOpen()
Specified by:
isOpen in interface de.jarnbjo.ogg.PhysicalOggStream

close

public void close()
           throws java.io.IOException
Specified by:
close in interface de.jarnbjo.ogg.PhysicalOggStream
Throws:
java.io.IOException