- METADATA_BLOCK_STREAMINFO || METADATA_BLOCK_PADDING || METADATA_BLOCK_APPLICATION || METADATA_BLOCK_SEEKTABLE || METADATA_BLOCK_VORBIS_COMMENT
+ METADATA_BLOCK_STREAMINFO
+ || METADATA_BLOCK_PADDING
+ || METADATA_BLOCK_APPLICATION
+ || METADATA_BLOCK_SEEKTABLE
+ || METADATA_BLOCK_VORBIS_COMMENT
+ || METADATA_BLOCK_CUESHEET
|
The block data must match the block type in the block header.
@@ -688,6 +695,170 @@
+
+
+
+ METADATA_BLOCK_CUESHEET
+ |
+
+
+
+ <128*8>
+ |
+
+ Media catalog number, in ASCII printable characters 0x20-0x7e. In general, the media catalog number may be 0 to 128 bytes long; any unused characters should be right-padded with NUL characters. For CD-DA, this is a thirteen digit number, followed by 115 NUL bytes.
+ |
+
+
+
+ <64>
+ |
+
+ The number of lead-in samples. This field has meaning only for CD-DA cuesheets; for other uses it should be 0. For CD-DA, the lead-in is the TRACK 00 area where the table of contents is stored; more precisely, it is the number of samples from the first sample of the media to the first sample of the first index point of the first track. According to the Red Book, the lead-in must be silence and CD grabbing software does not usually store it; additionally, the lead-in must be at least two seconds but may be longer (? @@@@). For these reasons the lead-in length is stored here so that the absolute position of the first track can be computed. Note that the lead-in stored here is the number of samples up to the first index point of the first track, not necessarily to INDEX 01 of the first track; even the first track may have INDEX 00 data.
+ |
+
+
+
+ <259*8>
+ |
+
+ Reserved. All bits must be set to zero.
+ |
+
+
+
+ <8>
+ |
+
+ The number of tracks. For CD-DA, this number must be no more than 100 (99 regular tracks and one leadout track).
+ |
+
+
+
+ CUESHEET_TRACK+
+ |
+
+ One or more tracks. A CUESHEET block is required to have a lead-out track; it is always the last track in the CUESHEET. For CD-DA, the lead-out track number must be 170 as specified by the Red Book (? @@@@).
+ |
+
+
+ |
+
+
+
+
+
+
+
+ CUESHEET_TRACK
+ |
+
+
+
+ <64>
+ |
+
+ Track offset in samples, relative to the beginning of the FLAC audio stream. It is the offset to the first index point of the track. (Note how this differs from CD-DA, where the track's offset in the TOC is that of the track's INDEX 01 even if there is an INDEX 00.) For CD-DA, the offset must be evenly divisible by 588 samples (588 samples = 44100 samples/sec * 1/75th of a sec).
+ |
+
+
+
+ <8>
+ |
+
+ Track number. A track number of 0 is not allowed to avoid conflicting with the CD-DA spec, which reserves this for the lead-in. For CD-DA the number must be 1-99, or 170 for the lead-out (? @@@@). It is not required but encouraged to start with track 1 and increase sequentially (? @@@@). Track numbers must be unique within a CUESHEET.
+ |
+
+
+
+ <12*8>
+ |
+
+ Track ISRC. This is a 12-digit alphanumeric code; see here and here. A value of 12 ASCII NUL characters may be used to denote absence of an ISRC.
+ |
+
+
+
+ <1>
+ |
+
+ The track type: 0 for audio, 1 for non-audio. This corresponds to the CD-DA Q-channel control bit 3.
+ |
+
+
+
+ <1>
+ |
+
+ The pre-emphasis flag: 0 for no pre-emphasis, 1 for pre-emphasis. This corresponds to the CD-DA Q-channel control bit 5; see here.
+ |
+
+
+
+ <6+13*8>
+ |
+
+ Reserved. All bits must be set to zero.
+ |
+
+
+
+ <8>
+ |
+
+ The number of track index points. There must be at least one index in every track in a CUESHEET except for the lead-out track, which must have zero. For CD-DA, this number may be no more than 100.
+ |
+
+
+
+ CUESHEET_TRACK_INDEX+
+ |
+
+ One or more track index points.
+ |
+
+
+ |
+
+
+
+
+
+
+
+ CUESHEET_TRACK_INDEX
+ |
+
+
+
+ <64>
+ |
+
+ Offset in samples, relative to the track offset, of the index point. For CD-DA, the offset must be evenly divisible by 588 samples (588 samples = 44100 samples/sec * 1/75th of a sec). Note that the offset is from the beginning of the track, not the beginning of the audio data.
+ |
+
+
+
+ <8>
+ |
+
+ Index point number. The first index in a track must have a number of 0 or 1, and subsequently, index numbers must increase by 1. Index numbers must be unique within a track.
+ |
+
+
+
+ <3*8>
+ |
+
+ Reserved. All bits must be set to zero.
+ |
+
+
+ |
+
+
+
+ |