1 .\" $FreeBSD: src/usr.sbin/cdcontrol/cdcontrol.1,v 1.21.2.14 2003/03/12 22:08:13 trhodes Exp $
2 .\" $DragonFly: src/usr.sbin/cdcontrol/cdcontrol.1,v 1.4 2006/02/17 19:40:13 swildner Exp $
9 .Nd compact disc control utility
18 utility is a program to control audio features of a CD drive.
19 The device is a name such
29 enters an interactive mode, reading commands from the standard input.
31 The following options are available:
32 .Bl -tag -width indent
35 Do not print table headers and human readable comments.
38 Print as much information as possible.
40 Specify a device, such as
44 Both absolute path and relative to
46 filename are possible.
49 is added to the device name if needed.
52 The available commands are listed below.
54 characters as are required to uniquely identify a command
58 can be omitted or the characters
67 .Bl -tag -width indent
68 .It Ic play Ar first_track Op Ar last_track
73 The first track has number 1.
74 Can be omitted in all cases.
77 .Ar start_m : Ns Ar start_s . Ns Ar start_f
78 .Op Ar end_m : Ns Ar end_s . Ns Ar end_f
80 Play from the absolute address
87 (frame number) to the absolute address defined by
94 Minutes are in the range 0-99.
95 Seconds are in the range 0-59.
96 Frame numbers are in the range 0-74.
97 .It Ic play Op # Ns Ar start_block Op Ar length
98 Play starting from the logical block
103 .It Ic next Op Ar tracks
104 Skip forward a number of tracks (default 1).
105 .It Ic prev Op Ar tracks
106 Skip backward a number of tracks (default 1).
109 Do not stop the disc.
121 .It Ic volume Ar left_channel right_channel
122 Set the volume of left channel to
124 and the volume of right channel to
126 Allowed values are in the range 0-255.
127 .It Ic volume Cm mute
129 .It Ic volume Cm mono
131 .It Ic volume Cm stereo
133 .It Ic volume Cm left
134 Play the left subtrack on both left and right channels.
135 .It Ic volume Cm right
136 Play the right subtrack on both left and right channels.
138 Print the table of contents.
139 .It Ic status Op Cm audio | media | volume
140 Print the information about the disc:
142 .Bl -tag -width ".Cm volume" -compact
144 the current playing status and position
146 the current media catalog status
148 the current values of the volume for left and right channels.
151 Display the serial number of the CD using the method used by the
154 .Pq Pa http://www.cddb.org/ .
156 Print the list of available commands.
158 Enable the debugging mode of the CD device driver.
160 Disable the driver debugging mode.
162 Perform the hardware reset of the device.
164 Set minute-second-frame ioctl mode (default).
168 Set the highest speed that the drive should use for reading data.
169 The units are multiples of a single speed CDROM (150 KB/s).
172 to use the drive's fastest speed.
180 The following environment variables affect the execution of
182 .Bl -tag -width ".Ev CD_DRIVE"
184 The CD device to use, if one is not specified with the
187 .It Ev CDPLAY , CD_DRIVE , DISC , MUSIC_CD
188 These variables have been deprecated in favour of
192 .Bl -tag -width ".Pa /dev/mcd0c" -compact
203 .An Jean-Marc Zucconi
204 .An Andrey A. Chernov
205 .An Serge V. Vakulenko