pub type TrackCDDA = Track<CDDAOffset, NonZero<u8>, IndexVec<100, CDDAOffset>>;Expand description
A CD-DA CUESHEET track
Aliased Type§
pub struct TrackCDDA {
pub offset: CDDAOffset,
pub number: NonZero<u8>,
pub isrc: ISRC,
pub non_audio: bool,
pub pre_emphasis: bool,
pub index_points: IndexVec<100, CDDAOffset>,
}Fields§
§offset: CDDAOffsetOffset of first index point
In samples relative to the beginning of the FLAC audio stream.
For CD-DA, the track offset must always be divisible by 588. This is because for audio CDs, tracks must always begin on CD frame boundaries. Since each CD frame is 1/75th of a second, and CDs have 44,100 samples per second, 44100 ÷ 75 = 588.
Non-CD-DA discs have no such restriction.
number: NonZero<u8>Track number
| Disc Type | Range | Lead-Out Track |
|---|---|---|
| CD-DA | 1 ≤ track number ≤ 99 | 170 |
| Non-CD-DA | 1 ≤ track number < 255 | 255 |
isrc: ISRCTrack’s ISRC
non_audio: boolWhether track is non-audio
pre_emphasis: boolWhether track has pre-emphasis
index_points: IndexVec<100, CDDAOffset>Track’s index points
| Disc Type | Lead-Out Track | Index Points |
|---|---|---|
| CD-DA | No | not more than 100 |
| CD-DA | Yes | 0 |
| Non-CD-DA | No | not more than 255 |
| Non-CD-DA | Yes | 0 |