Struct CdTrack

Namespace
CHDSharp.Encoder.Models
Assembly
CHDSharpLib.dll

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

int

FileName

Path to the source data file (BIN/WAV).

public string? FileName

Field Value

string

FileOffset

Byte offset of the track within its source data file.

public long FileOffset

Field Value

long

Frames

Number of frames in this track (includes pregap and pad frames where applicable).

public int Frames

Field Value

int

Index00

Absolute frame position of INDEX 00, or -1 when absent.

public int Index00

Field Value

int

Index01

Absolute frame position of INDEX 01.

public int Index01

Field Value

int

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

int

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

int

LogicalFrameStart

Frame number this track starts at within the CHD logical image.

public long LogicalFrameStart

Field Value

long

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

int

Number

The 1-based track number.

public int Number

Field Value

int

PadFrames

Zero-filled frames appended at the end of the track's data region (GDI gaps).

public int PadFrames

Field Value

int

PaddedFrames

Number of "spillage" frames the track is padded to (CHD layout).

public int PaddedFrames

Field Value

int

PgDataSize

Size of data in each sector of the pregap.

public int PgDataSize

Field Value

int

PgSub

Type of subchannel data in the pregap.

public int PgSub

Field Value

int

PgType

Type of sectors in the pregap.

public int PgType

Field Value

int

PhysicalFrameOffset

Physical (LBA) frame offset of the track on the disc (GDI).

public int PhysicalFrameOffset

Field Value

int

Postgap

Number of postgap frames.

public int Postgap

Field Value

int

Pregap

Number of pregap frames.

public int Pregap

Field Value

int

Session

Session number the track belongs to (0-based; 0 for single-session discs).

public int Session

Field Value

int

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

int

SubSize

Size of subchannel data in each sector of this track.

public int SubSize

Field Value

int

SubType

The subcode data type (see CdSubType).

public int SubType

Field Value

int

Swap

True when the track data must be byte-swapped for CHD storage (audio).

public bool Swap

Field Value

bool

TrackType

The track type (see CdTrackType).

public int TrackType

Field Value

int