pub struct Toc {
pub first_track: u8,
pub last_track: u8,
pub tracks: Vec<Track>,
pub leadout_lba: u32,
}Expand description
Table of Contents, read directly from the Audio CD. The most important part
is the tracks vector, which allows you to read raw track data.
If you read from file/image directly, you need to construct it manually.
Fields§
§first_track: u8First track number reported in the TOC header.
This is a disc track number, not a zero-based index into Toc::tracks.
It does not have to start with 1 and can be up to 99.
last_track: u8Helper value with the last track number. You should not use it directly to iterate over all available tracks, as there might be gaps.
tracks: Vec<Track>List of tracks with LBA and MSF offsets
leadout_lba: u32LBA at which the lead-out area begins, as reported by the disc TOC.
Track-bound calculations use this as the upper bound only for the last
entry in Toc::tracks. If another track follows, its start and any
applicable CD-Extra session-gap handling determine the preceding track’s
bound instead. The lead-out LBA is also required to calculate a
MusicBrainz Disc ID.