Struct CdTrack
Describes a single track of a CD, as parsed from a CUE/GDI/ISO/TOC sheet.
public struct CdTrack
- Inherited Members
Fields
DataSize
Size of data in each sector of this track.
public int DataSize
Field Value
FileName
Path to the source data file (BIN/WAV).
public string? FileName
Field Value
FileOffset
Byte offset of the track within its source data file.
public long FileOffset
Field Value
Frames
Number of frames in this track (includes pregap and pad frames where applicable).
public int Frames
Field Value
Index00
Absolute frame position of INDEX 00, or -1 when absent.
public int Index00
Field Value
Index01
Absolute frame position of INDEX 01.
public int Index01
Field Value
LeadIn
Lead-in frames for the track: declared by REM LEAD-IN or the session
REM PREGAP, or -1 when absent. Used only by the multisession layout rules;
never persisted in CHD metadata.
public int LeadIn
Field Value
LeadOut
Lead-out frames for the track as declared by REM LEAD-OUT, or -1 when absent.
During multisession resolution it can be rewritten from an absolute lead-out position
to the duration between the lead-out and the next track, mirroring MAME's parse_cue.
Used only by the multisession layout rules; never persisted in CHD metadata.
public int LeadOut
Field Value
LogicalFrameStart
Frame number this track starts at within the CHD logical image.
public long LogicalFrameStart
Field Value
MulticueArea
Redump multi-cue density area the track belongs to (0 = single density, 1 = high density); always 0 for non-GD-ROM cues. Set by CueParser from the "REM SINGLE-DENSITY AREA" / "REM HIGH-DENSITY AREA" markers.
public int MulticueArea
Field Value
Number
The 1-based track number.
public int Number
Field Value
PadFrames
Zero-filled frames appended at the end of the track's data region (GDI gaps).
public int PadFrames
Field Value
PaddedFrames
Number of "spillage" frames the track is padded to (CHD layout).
public int PaddedFrames
Field Value
PgDataSize
Size of data in each sector of the pregap.
public int PgDataSize
Field Value
PgSub
Type of subchannel data in the pregap.
public int PgSub
Field Value
PgType
Type of sectors in the pregap.
public int PgType
Field Value
PhysicalFrameOffset
Physical (LBA) frame offset of the track on the disc (GDI).
public int PhysicalFrameOffset
Field Value
Postgap
Number of postgap frames.
public int Postgap
Field Value
Pregap
Number of pregap frames.
public int Pregap
Field Value
Session
Session number the track belongs to (0-based; 0 for single-session discs).
public int Session
Field Value
SplitFrames
Frames at the end of this track's data region that are physically the start of the
NEXT track's file (a pregap stored ahead of its track, Redump multi-cue GD-ROMs).
Those frames are read from the next track's file and excluded from this track's file
region, mirroring MAME's cdrom_file::track_info::splitframes.
public int SplitFrames
Field Value
SubSize
Size of subchannel data in each sector of this track.
public int SubSize
Field Value
SubType
The subcode data type (see CdSubType).
public int SubType
Field Value
Swap
True when the track data must be byte-swapped for CHD storage (audio).
public bool Swap
Field Value
TrackType
The track type (see CdTrackType).
public int TrackType