version 1.13, 1998/09/23 04:32:36 |
version 1.14, 1999/06/05 01:21:20 |
|
|
.\" $OpenBSD$ |
.\" $OpenBSD$ |
.Dd July 3, 1995 |
.Dd July 3, 1995 |
.Dt CDIO 1 |
.Dt CDIO 1 |
.Os OpenBSD 2.0 |
.Os |
.Sh NAME |
.Sh NAME |
.Nm cdio |
.Nm cdio |
.Nd compact disc control utility |
.Nd compact disc control utility |
|
|
.Op Ar command args ... |
.Op Ar command args ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm cdio |
.Nm |
program controls audio features of a CD drive. The |
program controls audio features of a CD drive. The |
.Ar device |
.Ar device |
is a name such |
is a name such |
as ``cd0'', ``acd0'', or ``mcd0''. |
as |
|
.Dq cd0 , |
|
.Dq acd0 , |
|
or |
|
.Dq mcd0 . |
.Pp |
.Pp |
If a |
If a |
.Ar device |
.Ar device |
is not specified, the environment variable |
is not specified, the environment variable |
.Ev DISC |
.Ev DISC |
will be used to find the CD device. |
will be used to find the CD device. |
.Pp |
.Pp |
If no command is given, |
If no command is given, |
.Nm cdio |
.Nm |
enters an interactive mode, reading commands from the standard input. |
enters an interactive mode, reading commands from the standard input. |
.Pp |
.Pp |
The following options are available: |
The following options are available: |
|
|
may be omitted. |
may be omitted. |
.Bl -tag -width Cm |
.Bl -tag -width Cm |
.It Cm play Ar first_track Op Ar last_track |
.It Cm play Ar first_track Op Ar last_track |
Play from track |
Play from track |
.Nm first_track |
.Ar first_track |
to track |
to track |
.Nm last_track. |
.Ar last_track . |
The first track has number 1 and may be omitted in all cases. |
The first track has number 1 and may be omitted in all cases. |
.It Cm play Ar start_m:start_s.start_f Op Ar end_m:end_s.end_f |
.It Cm play Ar start_m:start_s.start_f Op Ar end_m:end_s.end_f |
Play from the absolute address |
Play from the absolute address |
(MSF) defined by |
(MSF) defined by |
.Ar start_m |
.Ar start_m |
in minutes, |
in minutes, |
.Ar start_s, |
.Ar start_s, |
in seconds and |
in seconds and |
.Ar start_f |
.Ar start_f |
(frame number) to the absolute address defined by |
(frame number) to the absolute address defined by |
.Ar end_m |
.Ar end_m |
in minutes, |
in minutes, |
.Ar end_s, |
.Ar end_s, |
in seconds and |
in seconds and |
.Ar end_f |
.Ar end_f |
(frame number). Minutes are in the range 0-99. Seconds are in the range 0-59. |
(frame number). Minutes are in the range 0-99. Seconds are in the range 0-59. |
Frame numbers are in the range 0-74. |
Frame numbers are in the range 0-74. |
|
|
Replay the current track again. |
Replay the current track again. |
.It Cm resume |
.It Cm resume |
Resume playing. Used after the |
Resume playing. Used after the |
.Nm pause |
.Cm pause |
command. |
command. |
.It Cm stop |
.It Cm stop |
Stop the disc. |
Stop the disc. |
|
|
.It Cm close |
.It Cm close |
Inject the disc. |
Inject the disc. |
.It Cm volume Ar left_channel Ar right_channel |
.It Cm volume Ar left_channel Ar right_channel |
Set the volume of the left channel to |
Set the volume of the left channel to |
.Ar left_channel |
.Ar left_channel |
and the volume of the right channel to |
and the volume of the right channel to |
.Ar right_channel . |
.Ar right_channel . |
Allowed values are in the range 0-255. |
Allowed values are in the range 0-255. |
.It Cm volume Ar mute |
.It Cm volume Ar mute |
Turn the sound off. |
Turn the sound off. |
.It Cm volume Ar mono |
.It Cm volume Ar mono |
|
|
.Nm |
.Nm |
and restarting with a different device. |
and restarting with a different device. |
.It Cm reset |
.It Cm reset |
Perform the hardware reset of the device. |
Perform a hardware reset of the device. |
.It Cm set Ar msf |
.It Cm set Ar msf |
Set minute-second-frame ioctl mode (default). |
Set minute-second-frame ioctl mode (default). |
.It Cm set Ar lba |
.It Cm set Ar lba |
|
|
Serge V.\ Vakulenko |
Serge V.\ Vakulenko |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm cdio |
.Nm |
command is based on |
command is based on |
.Nm cdcontrol , |
.Nm cdcontrol , |
which first appeared in FreeBSD 2.1. |
which first appeared in FreeBSD 2.1. |