Class OggStreamSizeInfo
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.ogg.OggStreamSizeInfo
-
public class OggStreamSizeInfo extends java.lang.ObjectDescribes the size information of an OGG stream.
-
-
Field Summary
Fields Modifier and Type Field Description longfirstPageOffsetAbsolute offset of the first page in the stream.longlastPageOffsetAbsolute offset of the last page in the stream.intsampleRateSample rate of the track in this stream, useful for calculating duration in milliseconds.longtotalBytesTotal number of bytes in the stream.longtotalSamplesTotal number of samples in the stream.
-
Constructor Summary
Constructors Constructor Description OggStreamSizeInfo(long totalBytes, long totalSamples, long firstPageOffset, long lastPageOffset, int sampleRate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()
-
-
-
Field Detail
-
totalBytes
public final long totalBytes
Total number of bytes in the stream.
-
totalSamples
public final long totalSamples
Total number of samples in the stream.
-
firstPageOffset
public final long firstPageOffset
Absolute offset of the first page in the stream.
-
lastPageOffset
public final long lastPageOffset
Absolute offset of the last page in the stream.
-
sampleRate
public final int sampleRate
Sample rate of the track in this stream, useful for calculating duration in milliseconds.
-
-
Constructor Detail
-
OggStreamSizeInfo
public OggStreamSizeInfo(long totalBytes, long totalSamples, long firstPageOffset, long lastPageOffset, int sampleRate)- Parameters:
totalBytes- SeetotalBytes.totalSamples- SeetotalSamples.firstPageOffset- SeefirstPageOffset.lastPageOffset- SeelastPageOffset.sampleRate- SeesampleRate.
-
-