Availability:IRIX.
This module provides an interface to the Silicon Graphics CD library.It is available only on Silicon Graphics systems.
The way the library works is as follows. A program opens the CD-ROMdevice withopen() and creates a parser to parse the datafrom the CD withcreateparser(). The object returned byopen() can be used to read data from the CD, but also to getstatus information for the CD-ROM device, and to get information aboutthe CD, such as the table of contents. Data from the CD is passed tothe parser, which parses the frames, and calls any callbackfunctions that have previously been added.
An audio CD is divided intotracks orprograms (the termsare used interchangeably). Tracks can be subdivided intoindices. An audio CD contains atable of contents whichgives the starts of the tracks on the CD. Index 0 is usually thepause before the start of a track. The start of the track as given bythe table of contents is normally the start of index 1.
Positions on a CD can be represented in two ways. Either a framenumber or a tuple of three values, minutes, seconds and frames. Mostfunctions use the latter representation. Positions can be bothrelative to the beginning of the CD, and to the beginning of thetrack.
Modulecd defines the following functions and constants:
| ) |
| minutes, seconds, frames) |
(minutes,seconds,frames) triplerepresenting time in absolute time code into the corresponding CDframe number.| [device[, mode]]) |
'/dev/scsi/sc0d4l0', orNone. If omitted orNone, the hardware inventory isconsulted to locate a CD-ROM drive. Themode, if not omitted,should be the string'r'.The module defines the following variables:
audio.The following variables are states as returned bygetstatus():