Class UncachedOggStream

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

public class UncachedOggStream extends Object implements de.jarnbjo.ogg.PhysicalOggStream
Single-threaded physical ogg stream. Decodes audio in the same thread that reads.
  • Constructor Details

    • UncachedOggStream

      public UncachedOggStream(InputStream in) throws de.jarnbjo.ogg.OggFormatException, IOException
      Throws:
      de.jarnbjo.ogg.OggFormatException
      IOException
  • Method Details

    • getLastOggPage

      public de.jarnbjo.ogg.OggPage getLastOggPage()
    • getOggPage

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

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

      public void setTime(long granulePosition) throws IOException
      Specified by:
      setTime in interface de.jarnbjo.ogg.PhysicalOggStream
      Throws:
      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 IOException
      Specified by:
      close in interface de.jarnbjo.ogg.PhysicalOggStream
      Throws:
      IOException