Class FlacTrackInfo


  • public class FlacTrackInfo
    extends java.lang.Object
    All relevant information about a FLAC track from its metadata.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long duration
      The duration of the track in milliseconds
      long firstFramePosition
      The position in the stream where the first frame starts.
      int seekPointCount
      The actual number of seek points that are not placeholders.
      FlacSeekPoint[] seekPoints
      An array of seek points.
      FlacStreamInfo stream
      FLAC stream information.
      java.util.Map<java.lang.String,​java.lang.String> tags
      The 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)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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.