com.jme3.audio.plugins
Class UncachedOggStream
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UncachedOggStream
public UncachedOggStream(java.io.InputStream in)
throws de.jarnbjo.ogg.OggFormatException,
java.io.IOException
- Throws:
de.jarnbjo.ogg.OggFormatException
java.io.IOException
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