org.gagravarr.vorbis
Class VorbisAudioData
java.lang.Object
org.gagravarr.ogg.HighLevelOggStreamPacket
org.gagravarr.vorbis.VorbisPacket
org.gagravarr.vorbis.VorbisAudioData
public class VorbisAudioData
- extends VorbisPacket
Raw, compressed audio data
Method Summary |
long |
getGranulePosition()
Returns the granule position, or -1 if
this wasn't read from a file |
protected int |
getHeaderSize()
How big is the header on this packet?
For Metadata packets it's normally 7 bytes,
otherwise for audio packets there is no header. |
void |
setGranulePosition(long granulePosition)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VorbisAudioData
public VorbisAudioData(OggPacket pkt)
VorbisAudioData
public VorbisAudioData(byte[] data)
getHeaderSize
protected int getHeaderSize()
- Description copied from class:
VorbisPacket
- How big is the header on this packet?
For Metadata packets it's normally 7 bytes,
otherwise for audio packets there is no header.
- Specified by:
getHeaderSize
in class VorbisPacket
getGranulePosition
public long getGranulePosition()
- Returns the granule position, or -1 if
this wasn't read from a file
setGranulePosition
public void setGranulePosition(long granulePosition)
Copyright © 2012. All Rights Reserved.