1 .\" $NetBSD: cdplay.1,v 1.21 2006/11/13 16:33:56 ad Exp $
3 .\" Copyright (c) 1999, 2000 Andrew Doran.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" from FreeBSD: cdcontrol.1,v 1.16.2.2 1999/01/31 15:36:01 billf Exp
34 .Nd compact disc player
37 .Op Fl a Ar audio device
42 is a program to control the audio features of a CD-ROM drive.
44 If no command is given, then
46 enters interactive mode, reading commands from the standard input.
48 The following options are available:
49 .Bl -tag -width indent
50 .It Fl a Ar audio device
51 Specify the audio device to use.
52 Used only in digital transfer mode.
53 If not specified, the environment variables
57 will be tried (in this order) to find the device; as a last resort,
61 Specify the control device to use.
62 Both absolute paths and paths relative to
69 on some architectures, see
71 for details) is added to the
72 device name if needed.
73 If the device not specified, the environment variables
79 will be tried (in this order) to find the device.
82 The available commands are listed below.
83 Only as many characters as are required to uniquely identify a command
87 can be omitted in all cases.
89 .It Cm play Op Ar first_track Op Ar last_track
94 The first track has number 1.
95 .It Cm play Op Ar start_m:start_s.start_f Op Ar end_m:end_s.end_f
96 Play from the absolute address
103 (frame number) to the absolute address defined by
110 Minutes are in the range 0-99.
111 Seconds are in the range 0-59.
112 Frame numbers are in the range 0-74.
113 .It Cm play Op Ar #start_block Op length
114 Play starting from the logical block
120 Skip to the next track.
122 Skip to the previous track.
125 Do not stop the disc.
133 Only valid in interactive mode.
134 .It Cm single Op Ar track
135 Pick a single track and play it repeatedly.
138 argument is not given the
140 command will shut shuffle mode off and play the disc normally.
141 Only valid in interactive mode.
143 Skip to another track.
144 Only valid when shuffle play is selected.
151 .It Cm volume Ar left_channel Ar right_channel
152 Set the volume of left channel to
154 and the volume of right channel to
156 Allowed values are in the range 0-255.
157 .It Cm volume Ar value
158 Set the volume of both left channel right channel to
160 Allowed values are in the range 0-255.
168 Play the left subtrack on both left and right channels.
170 Play the right subtrack on both left and right channels.
172 Print the table of contents.
174 Display the current audio, media and volume status.
176 Turn on digital transfer mode.
179 reads digital data from disc and sends it to an audio device.
180 A SCSI or ATAPI CD-ROM is required; and the audio device must
181 support CD audio format (44100 Hz sampling rate, 16-bit
183 Audio data are read and written in groups of
185 frames (5 by default, or 1/15 seconds).
187 Print the list of available commands.
189 Perform the hardware reset of the device.
191 Set minute-second-frame ioctl mode (default).
198 .Bl -tag -width /dev/rmcd0c -compact
208 command first appeared in
210 Support for digital transfer mode was added in