Class CueParser

Namespace
CHDSharp.Encoder
Assembly
CHDSharpLib.dll

Parses CUE sheets (CUE/BIN, CUE/ISO, CUE/WAV) into a CdToc. The parsing logic mirrors MAME's cdrom_file::parse_cue (src/lib/util/cdrom.cpp), including track length and file offset resolution.

public static class CueParser
Inheritance
CueParser
Inherited Members

Methods

Parse(string)

Parses a CUE sheet file into a table of contents.

public static CdToc Parse(string cueFilePath)

Parameters

cueFilePath string

Path to the .cue file.

Returns

CdToc

The parsed table of contents.

Exceptions

FileNotFoundException

The CUE file or a referenced data file does not exist.

InvalidDataException

The CUE file is malformed or uses an unsupported track/file type.

ParseMsfToFrames(string)

Converts an MM:SS:FF (or bare frame count) token into a frame count. Mirrors MAME's msf_to_frames for well-formed values; malformed tokens throw instead of producing MAME's silent partial parse (a 2-part "MM:SS" time or garbage would otherwise be encoded as a silently mistimed disc).

public static int ParseMsfToFrames(string token)

Parameters

token string

Returns

int