public class VorbisAudioData extends OggStreamAudioData implements VorbisPacket
granulePosition
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 |
---|---|
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 |
populateMetadataHeader(byte[] b,
int dataLength)
Have the metadata header populated into the data,
normally used when writing out.
|
getGranulePosition, setGranulePosition
getData, getOggPacket, setData, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData, setData, write
public VorbisAudioData(OggPacket pkt)
public VorbisAudioData(byte[] data)
public int getHeaderSize()
VorbisPacket
getHeaderSize
in interface VorbisPacket
public void populateMetadataHeader(byte[] b, int dataLength)
VorbisPacket
VorbisPacketFactory.populateMetadataHeader(byte[], int, int)
populateMetadataHeader
in interface VorbisPacket
Copyright © 2015. All rights reserved.