Class ChdTrackInfo

Namespace
CHDSharp.Models
Assembly
CHDSharpLib.dll

Represents a single track in a CD/GD-ROM CHD image, including type, size, pregap/postgap, and frame offset information.

public sealed class ChdTrackInfo
Inheritance
ChdTrackInfo
Inherited Members

Properties

DataSize

Bytes per sector for this track (2048, 2352, etc.).

public int DataSize { get; init; }

Property Value

int

ExtraFrames

Padding frames added for 4-frame alignment.

public int ExtraFrames { get; init; }

Property Value

int

Frames

Number of frames in this track.

public int Frames { get; init; }

Property Value

int

PadFrames

GD-ROM pad frames (GD-ROM only).

public int PadFrames { get; init; }

Property Value

int

PhysFrameOfs

Physical frame offset where this track starts (cumulative Frames without ExtraFrames).

public ulong PhysFrameOfs { get; init; }

Property Value

ulong

PostGap

Postgap frames.

public int PostGap { get; init; }

Property Value

int

PreGap

Pregap frames (index 00 to index 01).

public int PreGap { get; init; }

Property Value

int

PreGapDataSize

Bytes per sector for pregap data.

public int PreGapDataSize { get; init; }

Property Value

int

PreGapSubSize

Subcode bytes per sector for pregap.

public int PreGapSubSize { get; init; }

Property Value

int

PreGapSubType

Subcode type of pregap sectors.

public ChdSubType PreGapSubType { get; init; }

Property Value

ChdSubType

PreGapType

Track type of pregap sectors.

public ChdTrackType PreGapType { get; init; }

Property Value

ChdTrackType

SplitFrames

GD-ROM split frames — number of frames from the next track to append to the end of the previous track after padding (Redump split-bin; track_info::splitframes in cdrom.h:103). Used only during GD-ROM CUE/BIN extraction fixup (chdman.cpp:2886). Zero for all tracks except the HD-area tracks that require Redump reinterpretation.

public int SplitFrames { get; init; }

Property Value

int

StartFrame

CHD frame offset where this track starts.

public ulong StartFrame { get; init; }

Property Value

ulong

SubSize

Subcode bytes per sector (0 or 96).

public int SubSize { get; init; }

Property Value

int

SubType

Subcode type for this track.

public ChdSubType SubType { get; init; }

Property Value

ChdSubType

TrackNumber

1-based track number.

public int TrackNumber { get; init; }

Property Value

int

TrackType

CD track data type (Mode1, Audio, etc.).

public ChdTrackType TrackType { get; init; }

Property Value

ChdTrackType

Methods

GetMameSubTypeString()

Returns MAME get_subtype_string value (RW, RW_RAW, NONE).

public string GetMameSubTypeString()

Returns

string

GetMameTypeString()

Returns MAME get_type_string value (MODE1, MODE1_RAW, MODE2, etc., AUDIO) without size suffix.

public string GetMameTypeString()

Returns

string

GetSubTypeString()

Returns a human-readable subcode type string: "RW", "RW_RAW", or "NONE".

public string GetSubTypeString()

Returns

string

GetTypeString()

Returns a human-readable track type string such as "MODE1/2048" or "AUDIO".

public string GetTypeString()

Returns

string