Class FlacTrackInfo
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.flac.FlacTrackInfo
-
public class FlacTrackInfo extends java.lang.ObjectAll relevant information about a FLAC track from its metadata.
-
-
Field Summary
Fields Modifier and Type Field Description longdurationThe duration of the track in millisecondslongfirstFramePositionThe position in the stream where the first frame starts.intseekPointCountThe actual number of seek points that are not placeholders.FlacSeekPoint[]seekPointsAn array of seek points.FlacStreamInfostreamFLAC stream information.java.util.Map<java.lang.String,java.lang.String>tagsThe map of tag values from comment metadata block.
-
Constructor Summary
Constructors Constructor Description FlacTrackInfo(FlacStreamInfo stream, FlacSeekPoint[] seekPoints, int seekPointCount, java.util.Map<java.lang.String,java.lang.String> tags, long firstFramePosition)
-
-
-
Field Detail
-
stream
public final FlacStreamInfo stream
FLAC stream information.
-
seekPoints
public final FlacSeekPoint[] seekPoints
An array of seek points.
-
seekPointCount
public final int seekPointCount
The actual number of seek points that are not placeholders. The end of the array may contain empty seek points, which is why this value should be used to determine how far into the array to look.
-
tags
public final java.util.Map<java.lang.String,java.lang.String> tags
The map of tag values from comment metadata block.
-
firstFramePosition
public final long firstFramePosition
The position in the stream where the first frame starts.
-
duration
public final long duration
The duration of the track in milliseconds
-
-
Constructor Detail
-
FlacTrackInfo
public FlacTrackInfo(FlacStreamInfo stream, FlacSeekPoint[] seekPoints, int seekPointCount, java.util.Map<java.lang.String,java.lang.String> tags, long firstFramePosition)
- Parameters:
stream- FLAC stream information.seekPoints- An array of seek points.seekPointCount- The actual number of seek points that are not placeholders.tags- The map of tag values from comment metadata block.firstFramePosition- The position in the stream where the first frame starts.
-
-