Class CachedOggStream

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

public class CachedOggStream extends Object implements de.jarnbjo.ogg.PhysicalOggStream
Implementation of the PhysicalOggStream interface for reading and caching an Ogg stream from a URL. This class reads the data as fast as possible from the URL, caches it locally either in memory or on disk, and supports seeking within the available data.
  • Constructor Details

  • Method Details

    • getLastOggPage

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

      public Collection<de.jarnbjo.ogg.LogicalOggStream> getLogicalStreams()
      Specified by:
      getLogicalStreams 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
    • getOggPage

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

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

      public de.jarnbjo.ogg.LogicalOggStream reloadLogicalOggStream()
    • isSeekable

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