public abstract class VorbisPacket extends HighLevelOggStreamPacket
Modifier and Type | Field and Description |
---|---|
protected static int |
HEADER_LENGTH_AUDIO |
protected static int |
HEADER_LENGTH_METADATA |
static int |
TYPE_COMMENTS |
static int |
TYPE_INFO |
static int |
TYPE_SETUP |
Modifier | Constructor and Description |
---|---|
protected |
VorbisPacket() |
protected |
VorbisPacket(OggPacket oggPacket) |
Modifier and Type | Method and Description |
---|---|
static VorbisPacket |
create(OggPacket packet)
Creates the appropriate
VorbisPacket
instance based on the type. |
protected abstract 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.
|
static boolean |
isVorbisStream(OggPacket firstPacket)
Does this packet (the first in the stream) contain
the magic string indicating that it's a vorbis
one?
|
protected void |
populateMetadataHeader(byte[] b,
int type,
int dataLength)
Popupulates the metadata packet header,
which is "#vorbis" where # is the type.
|
getData, getOggPacket, setData, write
public static final int TYPE_INFO
public static final int TYPE_COMMENTS
public static final int TYPE_SETUP
protected static final int HEADER_LENGTH_METADATA
protected static final int HEADER_LENGTH_AUDIO
protected VorbisPacket(OggPacket oggPacket)
protected VorbisPacket()
protected abstract int getHeaderSize()
protected void populateMetadataHeader(byte[] b, int type, int dataLength)
public static boolean isVorbisStream(OggPacket firstPacket)
public static VorbisPacket create(OggPacket packet)
VorbisPacket
instance based on the type.Copyright © 2014. All rights reserved.