Japanese
PROGRAMMER'S GUIDEVirtual CD System
BackForward
Virtual CD System User's Manual/Chapter 5 CD Emulation Related Tools

5.3 TOC information diagnostic tool TOCCHK

5.3.1 Overview

TOCCHK checks the TOC file (VCDMKTOC output file "~.TOC") and outputs a diagnostic message to the standard output to check for abnormal TOC information.

Check item
(1) Track size check (Must be 4 seconds or more)
(2) Pre-gap size check (Must be 2 seconds or more)
(3) Post gap size check (Must be 1 second or more) ※Note
(4) Audio track start pause (Must be 2 seconds or more)

※Note
The post-gap mentioned here is shown in the CD-ROM XA standard.
According to the CD-ROM standard (YELLOW BOOK), a post gap of 2 seconds or more is required at the end of the data track that precedes the audio track, but this post gap is not checked because the information is not reflected in the TOC file. not.

Please make sure that the following statement is included at the end of the data track in the virtual CD script.

Data track just before CDDA
 |         :
 |       PostGap 150    ; <----- Confirm post gap of 2 seconds or more
 ↓   EndTrack
━━━  Track CDDA
 |       Pause 150
 |       FileSource 〜.DAT
 |       EndFileSource
 ↓         :
CDDA track

5.3.2 Command specifications

TOCCHK TOC file name (extension ".TOC" can be omitted)

command:
TOCCHK

Command name:
TOC file diagnosis

Format:
SWAP△file name

argument:
File name: TOC file name created by VCDMKTOC.EXE

option:
none

function:
Diagnose the specified TOC file.

Example of use:
To check the TOC file "SAMPLE.TOC" created by VCDMKTOC.EXE and output the results to the check file "SAMPLE.TCK", do as follows.


C:\> TOCCHK SAMPLE.TOC> SAMPLE.TCK
(Assume you are working in the root directory of drive C.)

5.3.3 Output format (sample)

TOCCHK.EXE Ver.1.02 1995-04-25
Copyright(c) SEGA ENTERPRISES, LTD. 1995
Copyright(c) CSK Research Institute Corp. 1995

OFFSET : CONTROL   TNO/X   FORM     TIME      DUMP(HEX)
 0000H : DATA  --- LeadIn  MODE1    00:00:00  41 00 00 02 00 00 00 00
 0008H : DATA  --- 01/00   MODE1    00:00:00  41 01 00 02 00 00 00 00
 0010H : DATA  --- 01/01   MODE1    00:02:00  41 01 01 02 00 00 02 00
 0018H : AUDIO -2- LeadOut MODE1    00:22:52  01 AA 01 02 00 00 22 52
               |||                            |  |  |  |  |  |  |  |
               |||                            |  |  |  |  |  MM:SS:FF
               ||+-- e: Emphasis flag         |  |  |  |  +--ZERO
               |+-- 2: 2ch / 4: 4ch           |  |  |  +--FORM
               +-- c: digital Copy permitted  |  |  +--X
                                              |  +--TNO
                                              +--CONTROL/ADR
DIAGNOSIS
V01.TOC(0018H) : FORM is not consistent with CONTROL
    |      |         |
    |      |         +---message body
    |      +--- OFFSET
    +---------- file name

Message list

(1) TNO=?? size XXX < 300 (4 sec)
The track size is 4 seconds or less.

(2) POST-GAP missing
There is no post gap.
The post-gap referred to here is shown in the CD-ROM XA standard.
The time when the FORM byte does not change even when changing from TNO to TNO+1 and X to 0 is determined to be the start of the pre-gap, and the time when the FORM byte changes is determined to be the end of the post-gap.

(3) POST-GAP smaller than 1 sec
Post gap is less than 1 second. (CD-ROM XA standard)

(4) PRE-GAP missing
Form bite changed even though there was no pre-gap.

(5) PRE-GAP smaller than 2 sec
Pre-gap is 2 seconds or less. (CD-ROM XA standard)

(6) PAUSE Missing
There is no pause in the audio track.

(7) PAUSE smaller than 2 seconds
Pre-gap is 2 seconds or less. (CD-ROM XA standard)

(8) LeadIn Control(??H) is not DATA
Control in the LeadIn area is not in DATA format. (Saturn format)
(For music CDs, it will be in AUDIO format)

(9) LeadIn FORM(??H) is not CD-ROM
The FORM in the LeadIn area is not in CD-ROM format. (Saturn format)

(10) LeadIn ATIME is not 00:00:00
The ATIME of the LeadIn area is not 00:00:00.

(11) Illegal Disc Type (??H)
Disc Type in the LeadIn area is not CD-ROM / CD-ROM XA / CD-I format.

(12) Illegal TNO/X=(??/??) at PAUSE
TNO/X of the first pose is not 01/00. (Saturn format)

(13) Illegal Control(??H) at PAUSE
Control of the first pose is not in DATA format. (Saturn format)

(14) Illegal ATIME ??:??:?? at PAUSE
The ATIME of the first pose is not 00:00:00. (Saturn format)

(15) Illegal TNO/X=(??/??) at 1st TRACK
TNO/X of the first track is not 01/01. (Saturn format)

(16) Illegal CONTROL(??H) at 1st TRACK
CONTROL of the first track is not in DATA format. (Saturn format)

(17) Illegal ATIME ??:??:?? at 1st TRACK
The ATIME of the first track is not 00:02:00. (Saturn format)

(18) Illegal CONTROL(??H)
CONTROL is an unacceptable value. (Saturn format)

(19) TNO/X=(??/??) Sequence error
Track numbers/indexes are not in ascending order.

(20) ATIME=(??:??:??) Sequence error
ATIME is not in ascending order.

(21) FORM is not consistent with CONTROL
There is an inconsistency between the FORM byte and CONTROL.
(AUDIO for CDDA, DATA for others)

(22) Illegal FORM (??H)
:The value of Form byte is invalid.


BackForward
PROGRAMMER'S GUIDEVirtual CD System
Copyright SEGA ENTERPRISES, LTD. 1997