Class OggPageHeader
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.ogg.OggPageHeader
-
public class OggPageHeader extends java.lang.ObjectHeader of an OGG stream page.
-
-
Field Summary
Fields Modifier and Type Field Description longabsolutePositionThe absolute position in the number of samples of this packet relative to the track start.longbyteStreamPositionThe absolute position of the start of this page in the underlying bytestream.static intFLAG_CONTINUATIONstatic intFLAG_FIRST_PAGEstatic intFLAG_LAST_PAGEbooleanisContinuationIf this page starts in the middle of a packet that was left incomplete in the previous page.booleanisFirstPageIf this is the first page of the track.booleanisLastPageIf this is the last page of the track.intpageChecksumThe checksum of the page.intpageSequenceThe index of the page within a track.intsegmentCountNumber of segments in the page.intstreamIdentifierUnique identifier of this track in the stream.
-
Constructor Summary
Constructors Constructor Description OggPageHeader(int flags, long absolutePosition, int streamIdentifier, int pageSequence, int checksum, int segmentCount, long byteStreamPosition)
-
-
-
Field Detail
-
FLAG_CONTINUATION
public static final int FLAG_CONTINUATION
- See Also:
- Constant Field Values
-
FLAG_FIRST_PAGE
public static final int FLAG_FIRST_PAGE
- See Also:
- Constant Field Values
-
FLAG_LAST_PAGE
public static final int FLAG_LAST_PAGE
- See Also:
- Constant Field Values
-
isContinuation
public final boolean isContinuation
If this page starts in the middle of a packet that was left incomplete in the previous page.
-
isFirstPage
public final boolean isFirstPage
If this is the first page of the track.
-
isLastPage
public final boolean isLastPage
If this is the last page of the track.
-
absolutePosition
public final long absolutePosition
The absolute position in the number of samples of this packet relative to the track start.
-
streamIdentifier
public final int streamIdentifier
Unique identifier of this track in the stream.
-
pageSequence
public final int pageSequence
The index of the page within a track.
-
pageChecksum
public final int pageChecksum
The checksum of the page.
-
segmentCount
public final int segmentCount
Number of segments in the page.
-
byteStreamPosition
public final long byteStreamPosition
The absolute position of the start of this page in the underlying bytestream.
-
-
Constructor Detail
-
OggPageHeader
public OggPageHeader(int flags, long absolutePosition, int streamIdentifier, int pageSequence, int checksum, int segmentCount, long byteStreamPosition)- Parameters:
flags- Page flags.absolutePosition- The absolute position in the number of samples of this packet relative to the track start.streamIdentifier- Unique identifier of this track in the stream.pageSequence- The index of the page within a track.checksum- The checksum of the page.segmentCount- Number of segments in the page.byteStreamPosition- The absolute position in bytes of this page in the stream.
-
-