Technical data

cdio(7I) Ioctl Requests SunOS 5.5
the start time for a track. An approximation of the finish time can
be obtained by using the CDROMREADTOCENTRY ioctl request to
retrieve the start time of the track following the current track.
The leadout track is the next consecutive track after the last audio
track. Hence, the start time of the leadout track may be used as the
effective finish time of the last audio track.
CDROMPLAYTRKIND
This ioctl() command is similar to CDROMPLAYMSF. The starting
and ending address is in track/index format. The third argument
of the ioctl() call is a pointer to the type struct cdrom_ti.
/
definition of play audio track/index structure
/
struct cdrom_ti {
unsigned char cdti_trk0; /starting track/
unsigned char cdti_ind0; /starting index/
unsigned char cdti_trk1; /ending track /
unsigned char cdti_ind1; /ending index /
};
CDROMVOLCTRL This ioctl() command controls the audio output level. The SCSI
command allows the control of up to four channels. The current
implementation of the supported CD-ROM drive only uses channel
0 and channel 1. The valid values of volume control are between
0x00 and 0xFF, with a value of 0xFF indicating maximum volume.
The third argument of the ioctl() call is a pointer to struct
cdrom_volctrl which contains the output volume values.
/
definition of audio volume control structure
/
struct cdrom_volctrl {
unsigned char channel0;
unsigned char channel1;
unsigned char channel2;
unsigned char channel3;
};
The following I/O controls take a pointer that will have data returned to the user pro-
gram from the CD-ROM driver.
CDROMREADTOCHDR
This ioctl() command returns the header of the table of contents
(TOC). The header consists of the starting tracking number and the
ending track number of the disc. These two numbers are returned
through a pointer of struct cdrom_tochdr. While the disc can start
at any number, all tracks between the first and last tracks are in
7I-54 modified 26 Jan 1995