public class VorbisAudioData extends VorbisPacket
HEADER_LENGTH_AUDIO, HEADER_LENGTH_METADATA, TYPE_COMMENTS, TYPE_INFO, TYPE_SETUP
Constructor and Description |
---|
VorbisAudioData(byte[] data) |
VorbisAudioData(OggPacket pkt) |
Modifier and Type | Method and Description |
---|---|
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) |
create, isVorbisStream, populateMetadataHeader
getData, getOggPacket, setData, write
public VorbisAudioData(OggPacket pkt)
public VorbisAudioData(byte[] data)
protected int getHeaderSize()
VorbisPacket
getHeaderSize
in class VorbisPacket
public long getGranulePosition()
public void setGranulePosition(long granulePosition)
Copyright © 2014. All rights reserved.