Class TocParser

Namespace
CHDSharp.Encoder
Assembly
CHDSharpLib.dll

Parses a cdrdao-style .toc descriptor into a table of contents, matching MAME's fallback TOC parser in cdrom_file::parse_toc. Supports TRACK, DATAFILE/ AUDIOFILE/FILE (with SWAP, #decimal and MSF offsets/lengths), START, and the COPY/PRE_EMPHASIS/CHANNEL control lines.

public static class TocParser
Inheritance
TocParser
Inherited Members

Methods

Parse(string)

Parses a .toc descriptor into a table of contents.

public static CdToc Parse(string tocPath)

Parameters

tocPath string

Path to the .toc file; referenced data files are resolved relative to it.

Returns

CdToc

The parsed table of contents.

Exceptions

FileNotFoundException

The TOC file does not exist.

InvalidDataException

The TOC file is malformed or uses an unknown track type.