Package com.jme3.audio.plugins
Class CachedOggStream
java.lang.Object
com.jme3.audio.plugins.CachedOggStream
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
de.jarnbjo.ogg.OggPage
Collection<de.jarnbjo.ogg.LogicalOggStream>
de.jarnbjo.ogg.OggPage
getOggPage
(int index) boolean
isOpen()
boolean
de.jarnbjo.ogg.LogicalOggStream
void
setTime
(long granulePosition)
-
Constructor Details
-
CachedOggStream
- Throws:
IOException
-
-
Method Details
-
getLastOggPage
public de.jarnbjo.ogg.OggPage getLastOggPage() -
getLogicalStreams
- Specified by:
getLogicalStreams
in interfacede.jarnbjo.ogg.PhysicalOggStream
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfacede.jarnbjo.ogg.PhysicalOggStream
-
close
- Specified by:
close
in interfacede.jarnbjo.ogg.PhysicalOggStream
- Throws:
IOException
-
getOggPage
- Specified by:
getOggPage
in interfacede.jarnbjo.ogg.PhysicalOggStream
- Throws:
IOException
-
setTime
- Specified by:
setTime
in interfacede.jarnbjo.ogg.PhysicalOggStream
- Throws:
IOException
-
reloadLogicalOggStream
public de.jarnbjo.ogg.LogicalOggStream reloadLogicalOggStream() -
isSeekable
public boolean isSeekable()- Specified by:
isSeekable
in interfacede.jarnbjo.ogg.PhysicalOggStream
-