Class FlacSeekPoint


  • public class FlacSeekPoint
    extends java.lang.Object
    FLAC seek point info. Field descriptions are from: https://xiph.org/flac/format.html#seekpoint

    - For placeholder points, the second and third field values are undefined. - Seek points within a table must be sorted in ascending order by sample number. - Seek points within a table must be unique by sample number, with the exception of placeholder points. - The previous two notes imply that there may be any number of placeholder points, but they must all occur at the end of the table.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      long byteOffset
      Offset (in bytes) from the first byte of the first frame header to the first byte of the target frame's header.
      static int LENGTH  
      int sampleCount
      Number of samples in the target frame.
      long sampleIndex
      Sample number of first sample in the target frame, or 0xFFFFFFFFFFFFFFFF for a placeholder point.
    • Constructor Summary

      Constructors 
      Constructor Description
      FlacSeekPoint​(long sampleIndex, long byteOffset, int sampleCount)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • sampleIndex

        public final long sampleIndex
        Sample number of first sample in the target frame, or 0xFFFFFFFFFFFFFFFF for a placeholder point.
      • byteOffset

        public final long byteOffset
        Offset (in bytes) from the first byte of the first frame header to the first byte of the target frame's header.
      • sampleCount

        public final int sampleCount
        Number of samples in the target frame.
    • Constructor Detail

      • FlacSeekPoint

        public FlacSeekPoint​(long sampleIndex,
                             long byteOffset,
                             int sampleCount)
        Parameters:
        sampleIndex - Index of the first sample in the frame
        byteOffset - Offset in bytes from first frame start to target frame start
        sampleCount - Number of samples in the frame