Annotation of src/usr.bin/cdio/cdio.1, Revision 1.38
1.38 ! jmc 1: .\" $OpenBSD: cdio.1,v 1.37 2006/06/10 14:05:45 jmc Exp $
1.26 jmc 2: .\"
3: .\" Copyright (c) 1995 Serge V. Vakulenko
4: .\" All rights reserved.
5: .\"
6: .\" Redistribution and use in source and binary forms, with or without
7: .\" modification, are permitted provided that the following conditions
8: .\" are met:
9: .\"
10: .\" 1. Redistributions of source code must retain the above copyright
11: .\" notice, this list of conditions and the following disclaimer.
12: .\" 2. Redistributions in binary form must reproduce the above copyright
13: .\" notice, this list of conditions and the following disclaimer in the
14: .\" documentation and/or other materials provided with the distribution.
15: .\" 3. All advertising materials mentioning features or use of this software
16: .\" must display the following acknowledgement:
17: .\" This product includes software developed by Serge V. Vakulenko.
18: .\" 4. The name of the author may not be used to endorse or promote products
19: .\" derived from this software without specific prior written permission.
20: .\"
21: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.21 aaron 31: .\"
1.1 downsj 32: .Dd July 3, 1995
33: .Dt CDIO 1
1.14 aaron 34: .Os
1.1 downsj 35: .Sh NAME
36: .Nm cdio
1.37 jmc 37: .Nd compact disc control utility
1.1 downsj 38: .Sh SYNOPSIS
39: .Nm cdio
1.21 aaron 40: .Op Fl sv
1.37 jmc 41: .Oo Fl d Ar host :
42: .Ar port Oc
1.13 aaron 43: .Op Fl f Ar device
44: .Op Ar command args ...
1.1 downsj 45: .Sh DESCRIPTION
1.13 aaron 46: The
1.14 aaron 47: .Nm
1.37 jmc 48: program is a compact disc control utility,
49: with support for playing audio CDs and TAO CD writing.
1.1 downsj 50: .Pp
1.13 aaron 51: If no command is given,
1.14 aaron 52: .Nm
1.37 jmc 53: enters interactive mode, reading commands from the standard input.
1.1 downsj 54: .Pp
1.16 aaron 55: The options are as follows:
1.19 aaron 56: .Bl -tag -width Ds
1.28 jmc 57: .It Xo
58: .Fl d
59: .Ar host : Ns Ar port
60: .Xc
1.38 ! jmc 61: Specifies a CDDB host
! 62: .Bq default: freedb.freedb.org:cddb .
1.13 aaron 63: .It Fl f Ar device
1.38 ! jmc 64: Specifies the name of the CD device, such as
1.13 aaron 65: .Pa /dev/rcd0d
66: or
67: .Pa mcd0 .
68: Both absolute and relative paths to
69: .Pa /dev
1.38 ! jmc 70: filenames are possible;
! 71: the raw partition name is added if needed.
1.28 jmc 72: .It Fl s
73: Silent mode.
74: Do not print table headers or human-readable comments.
75: .It Fl v
76: Verbose mode.
77: Print as much information as possible.
1.1 downsj 78: .El
79: .Pp
1.17 aaron 80: The available commands are listed below.
81: Only as many characters as are required to uniquely identify a command
82: need be specified.
83: The word
84: .Ic play
1.13 aaron 85: may be omitted.
1.29 jmc 86: .Bl -tag -width Ds
1.32 mjc 87: .It Ic blank
88: Minimally blank the disc.
1.29 jmc 89: .It Ic cddb Op Ar n
1.38 ! jmc 90: Print the table of contents after matching the disc with the CDDB.
1.29 jmc 91: In case of multiple matches, reissue the command with
92: .Ar n .
93: .It Ic cdid
1.38 ! jmc 94: Print the disc ID that will be used for matching with the CDDB.
1.29 jmc 95: .It Ic close
96: Inject the disc.
97: .It Ic debug Ar on | off
98: Enable/disable the debugging mode of the CD device driver.
99: .It Ic device Ar devname
100: Make
101: .Ar devname
102: the current CD device.
103: This is the equivalent of quitting
104: .Nm
105: and restarting with a different device.
106: .It Ic eject
107: Eject the disc.
1.30 robert 108: .It Ic exit
109: A synonym for
110: .Ic quit .
1.29 jmc 111: .It Ic help
112: Print the list of available commands.
113: .It Ic info
114: Print the table of contents.
115: .It Ic next
116: Play the next track.
117: If we're at the last track, stop.
118: .It Ic pause
119: Stop playing.
120: Do not stop the disc.
1.17 aaron 121: .It Ic play Ar first_track Op Ar last_track
1.14 aaron 122: Play from track
123: .Ar first_track
1.1 downsj 124: to track
1.14 aaron 125: .Ar last_track .
1.13 aaron 126: The first track has number 1 and may be omitted in all cases.
1.31 krw 127: .It Xo Ic play
128: .Op Ar tr1
129: .Ar m1 : Ns Ar s1 Ns Op .f1
130: .Op Ar tr2
131: .Oo Ar m2 : Ns Ar s2 Ns
132: .Op .f2 Oc
133: .Xc
1.1 downsj 134: Play from the absolute address
1.14 aaron 135: (MSF) defined by
1.31 krw 136: .Ar m1
1.14 aaron 137: in minutes,
1.31 krw 138: .Ar s1
139: in seconds,
140: frame number
141: .Ar f1 ,
142: to the absolute address defined by
143: .Ar m2
1.14 aaron 144: in minutes,
1.31 krw 145: .Ar s2
146: in seconds,
147: frame number
148: .Ar f2 .
149: If a track number is specified
150: .Pq tr Ns Ar X ,
151: then the minutes, seconds, and frame numbers
152: are relative to the start of that track.
153: Minutes are in the range 0\(en99.
154: Seconds are in the range 0\(en59.
155: Frame numbers are in the range 0\(en74.
1.29 jmc 156: .It Ic play Op Ar #start_block Op Ar length
1.1 downsj 157: Play starting from the logical block
1.13 aaron 158: .Ar start_block
1.1 downsj 159: using
1.13 aaron 160: .Ar length
1.1 downsj 161: logical blocks.
1.17 aaron 162: .It Ic previous
163: Play the previous track.
164: If we're at the first track, restart.
1.29 jmc 165: .It Ic quit
166: Quit the program.
1.17 aaron 167: .It Ic replay
1.8 angelos 168: Replay the current track again.
1.29 jmc 169: .It Ic reset
170: Perform a hardware reset of the device.
1.17 aaron 171: .It Ic resume
172: Resume playing.
173: Used after the
174: .Ic pause
1.4 deraadt 175: command.
1.29 jmc 176: .It Ic set Ar lba | msf
177: Set LBA
178: .Pq Ar lba
179: or minute-second-frame
180: .Pq Ar msf
181: ioctl mode.
182: The default is minute-second-frame ioctl mode.
183: .It Ic status
184: Print information about the disc:
185: the current playing status and position,
186: the current media catalog status,
187: and the current values of the volume for left and right channels.
1.17 aaron 188: .It Ic stop
1.1 downsj 189: Stop the disc.
1.32 mjc 190: .It Xo Ic tao
1.36 jmc 191: .Op Fl ad
1.32 mjc 192: .Ar trackfile ...
193: .Xc
1.36 jmc 194: .Bq command line only
195: \ \&Write a track-at-once CD containing the specified
196: .Ar trackfile .
197: .Pp
198: The options are as follows:
1.38 ! jmc 199: .Pp
! 200: .Bl -tag -width Ds -compact
1.36 jmc 201: .It Fl a
202: Write files as audio tracks.
203: .It Fl d
204: Write files as data tracks (the default).
205: .El
1.17 aaron 206: .It Ic volume Ar left_channel Ar right_channel
1.14 aaron 207: Set the volume of the left channel to
1.13 aaron 208: .Ar left_channel
1.14 aaron 209: and the volume of the right channel to
210: .Ar right_channel .
1.29 jmc 211: Allowed values are in the range 0\-255.
1.34 jmc 212: .It Xo Ic volume
213: .Ic left \*(Ba
214: .Ic right \*(Ba
215: .Ic mono \*(Ba
216: .Ic stereo \*(Ba
217: .Ic mute
218: .Xc
219: Respectively:
220: play the left subtrack on both left and right channels;
221: play the right subtrack on both left and right channels;
222: set mono mode;
223: set stereo mode;
224: turn the sound off.
1.38 ! jmc 225: .El
! 226: .Sh ENVIRONMENT
! 227: .Bl -tag -width "DICSXXX"
! 228: .It Ev DISC
! 229: Specifies the name of the CD device
! 230: (see also the
! 231: .Fl f
! 232: option).
1.18 aaron 233: .El
1.1 downsj 234: .Sh FILES
235: .Bl -tag -width /dev/rmcd0c -compact
1.10 mickey 236: .It Pa /dev/rcd0c
237: .It Pa /dev/rmcd0c
1.1 downsj 238: .El
1.28 jmc 239: .Sh SEE ALSO
240: .Xr aucat 1 ,
241: .Xr audioctl 1 ,
242: .Xr mixerctl 1 ,
243: .Xr audio 4
1.1 downsj 244: .Sh HISTORY
245: The
1.14 aaron 246: .Nm
1.1 downsj 247: command is based on
248: .Nm cdcontrol ,
1.22 mpech 249: which first appeared in
250: .Fx 2.1 .
1.27 jmc 251: .Sh AUTHORS
252: Jean-Marc Zucconi,
253: Andrey A. Chernov,
254: Serge V. Vakulenko,
255: Marc Espie