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, populateMetadataHeadergetData, getOggPacket, setData, writepublic VorbisAudioData(OggPacket pkt)
public VorbisAudioData(byte[] data)
protected int getHeaderSize()
VorbisPacketgetHeaderSize in class VorbisPacketpublic long getGranulePosition()
public void setGranulePosition(long granulePosition)
Copyright © 2014. All rights reserved.