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.5 2007/05/17 19:26:06 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
27 enters an interactive mode, reading commands from the standard input.
29 The following options are available:
30 .Bl -tag -width indent
33 Do not print table headers and human readable comments.
36 Print as much information as possible.
38 Specify a device, such as
40 Both absolute path and relative to
42 filename are possible.
45 is added to the device name if needed.
48 The available commands are listed below.
50 characters as are required to uniquely identify a command
54 can be omitted or the characters
63 .Bl -tag -width indent
64 .It Ic play Ar first_track Op Ar last_track
69 The first track has number 1.
70 Can be omitted in all cases.
73 .Ar start_m : Ns Ar start_s . Ns Ar start_f
74 .Op Ar end_m : Ns Ar end_s . Ns Ar end_f
76 Play from the absolute address
83 (frame number) to the absolute address defined by
90 Minutes are in the range 0-99.
91 Seconds are in the range 0-59.
92 Frame numbers are in the range 0-74.
93 .It Ic play Op # Ns Ar start_block Op Ar length
94 Play starting from the logical block
99 .It Ic next Op Ar tracks
100 Skip forward a number of tracks (default 1).
101 .It Ic prev Op Ar tracks
102 Skip backward a number of tracks (default 1).
105 Do not stop the disc.
117 .It Ic volume Ar left_channel right_channel
118 Set the volume of left channel to
120 and the volume of right channel to
122 Allowed values are in the range 0-255.
123 .It Ic volume Cm mute
125 .It Ic volume Cm mono
127 .It Ic volume Cm stereo
129 .It Ic volume Cm left
130 Play the left subtrack on both left and right channels.
131 .It Ic volume Cm right
132 Play the right subtrack on both left and right channels.
134 Print the table of contents.
135 .It Ic status Op Cm audio | media | volume
136 Print the information about the disc:
138 .Bl -tag -width ".Cm volume" -compact
140 the current playing status and position
142 the current media catalog status
144 the current values of the volume for left and right channels.
147 Display the serial number of the CD using the method used by the
150 .Pq Pa http://www.cddb.org/ .
152 Print the list of available commands.
154 Enable the debugging mode of the CD device driver.
156 Disable the driver debugging mode.
158 Perform the hardware reset of the device.
160 Set minute-second-frame ioctl mode (default).
164 Set the highest speed that the drive should use for reading data.
165 The units are multiples of a single speed CDROM (150 KB/s).
168 to use the drive's fastest speed.
176 The following environment variables affect the execution of
178 .Bl -tag -width ".Ev CD_DRIVE"
180 The CD device to use, if one is not specified with the
183 .It Ev CDPLAY , CD_DRIVE , DISC , MUSIC_CD
184 These variables have been deprecated in favour of
188 .Bl -tag -width ".Pa /dev/acd0c" -compact
198 .An Jean-Marc Zucconi
199 .An Andrey A. Chernov
200 .An Serge V. Vakulenko