2004-03-19 00:13:19 +03:00
|
|
|
.\" $NetBSD: cdplay.1,v 1.16 2004/03/18 21:14:54 wiz Exp $
|
1999-06-05 17:21:59 +04:00
|
|
|
.\"
|
2000-06-14 18:38:52 +04:00
|
|
|
.\" Copyright (c) 1999, 2000 Andrew Doran.
|
2000-06-13 17:36:42 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" from FreeBSD: cdcontrol.1,v 1.16.2.2 1999/01/31 15:36:01 billf Exp
|
1999-06-05 17:21:59 +04:00
|
|
|
.\"
|
2004-03-19 00:13:19 +03:00
|
|
|
.Dd March 18, 2004
|
1999-06-05 17:21:59 +04:00
|
|
|
.Dt CDPLAY 1
|
2001-04-09 16:30:53 +04:00
|
|
|
.Os
|
1999-06-05 17:21:59 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm cdplay
|
|
|
|
.Nd compact disc player
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm cdplay
|
|
|
|
.Op Fl f Ar device
|
|
|
|
.Op Ar command ...
|
|
|
|
.Sh DESCRIPTION
|
2000-06-14 18:38:52 +04:00
|
|
|
.Nm
|
2001-08-20 13:50:10 +04:00
|
|
|
is a program to control the audio features of a CD-ROM drive.
|
1999-06-05 17:21:59 +04:00
|
|
|
.Pp
|
|
|
|
If no command is given, then
|
|
|
|
.Nm
|
2000-06-14 18:38:52 +04:00
|
|
|
enters interactive mode, reading commands from the standard input.
|
1999-06-05 17:21:59 +04:00
|
|
|
.Pp
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl f Ar device
|
2002-09-30 13:33:39 +04:00
|
|
|
Specify the control device to use.
|
|
|
|
Both absolute paths and paths relative to
|
1999-06-05 17:21:59 +04:00
|
|
|
.Pa /dev
|
2002-09-30 13:33:39 +04:00
|
|
|
are accepted.
|
|
|
|
The suffix
|
|
|
|
.Ql c
|
|
|
|
(or
|
|
|
|
.Ql d
|
|
|
|
on some architectures, see
|
2000-06-14 18:38:52 +04:00
|
|
|
.Xr disklabel 8
|
2001-04-09 16:30:53 +04:00
|
|
|
for details) is added to the
|
2002-09-30 13:33:39 +04:00
|
|
|
device name if needed.
|
|
|
|
If the device not specified, the environment variables
|
2000-06-14 18:38:52 +04:00
|
|
|
.Ev MUSIC_CD ,
|
|
|
|
.Ev CD_DRIVE ,
|
|
|
|
.Ev DISC
|
|
|
|
and
|
|
|
|
.Ev CDPLAY
|
|
|
|
will be tried (in this order) to find the device.
|
1999-06-05 17:21:59 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
2002-09-30 13:33:39 +04:00
|
|
|
The available commands are listed below.
|
|
|
|
Only as many characters as are required to uniquely identify a command
|
|
|
|
need be specified.
|
|
|
|
The word
|
1999-06-05 17:21:59 +04:00
|
|
|
.Em play
|
2000-04-15 22:11:00 +04:00
|
|
|
can be omitted in all cases.
|
1999-06-05 17:21:59 +04:00
|
|
|
.Bl -tag -width Cm
|
2000-04-15 22:11:00 +04:00
|
|
|
.It Cm play Op Ar first_track Op Ar last_track
|
2001-04-09 16:30:53 +04:00
|
|
|
Play from track
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar first_track
|
|
|
|
to track
|
|
|
|
.Ar last_track .
|
|
|
|
The first track has number 1.
|
2000-04-15 22:11:00 +04:00
|
|
|
.It Cm play Op Ar start_m:start_s.start_f Op Ar end_m:end_s.end_f
|
1999-06-05 17:21:59 +04:00
|
|
|
Play from the absolute address
|
2001-04-09 16:30:53 +04:00
|
|
|
(MSF) defined by
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar start_m
|
2001-04-09 16:30:53 +04:00
|
|
|
in minutes,
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar start_s ,
|
2001-04-09 16:30:53 +04:00
|
|
|
in seconds and
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar start_f
|
|
|
|
(frame number) to the absolute address defined by
|
|
|
|
.Ar end_m
|
2001-04-09 16:30:53 +04:00
|
|
|
in minutes,
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar end_s ,
|
2001-04-09 16:30:53 +04:00
|
|
|
in seconds and
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar end_f
|
2002-09-30 13:33:39 +04:00
|
|
|
(frame number).
|
|
|
|
Minutes are in the range 0-99.
|
|
|
|
Seconds are in the range 0-59.
|
1999-06-05 17:21:59 +04:00
|
|
|
Frame numbers are in the range 0-74.
|
|
|
|
.It Cm play Op Ar #start_block Op length
|
|
|
|
Play starting from the logical block
|
|
|
|
.Ar start_block
|
|
|
|
using
|
|
|
|
.Ar length
|
|
|
|
logical blocks.
|
2001-07-01 09:04:26 +04:00
|
|
|
.It Cm next
|
|
|
|
Skip to the next track.
|
|
|
|
.It Cm prev
|
|
|
|
Skip to the previous track.
|
1999-06-05 17:21:59 +04:00
|
|
|
.It Cm pause
|
2002-09-30 13:33:39 +04:00
|
|
|
Stop playing.
|
|
|
|
Do not stop the disc.
|
1999-06-05 17:21:59 +04:00
|
|
|
.It Cm resume
|
2002-09-30 13:33:39 +04:00
|
|
|
Resume playing.
|
|
|
|
Used after the
|
1999-06-05 17:21:59 +04:00
|
|
|
.Em pause
|
|
|
|
command.
|
2001-08-20 15:24:57 +04:00
|
|
|
.It Cm shuffle
|
2002-09-30 13:33:39 +04:00
|
|
|
Select shuffle play.
|
|
|
|
Only valid in interactive mode.
|
2001-08-20 15:24:57 +04:00
|
|
|
.It Cm skip
|
2002-09-30 13:33:39 +04:00
|
|
|
Skip to another track.
|
|
|
|
Only valid when shuffle play is selected.
|
1999-06-05 17:21:59 +04:00
|
|
|
.It Cm stop
|
|
|
|
Stop the disc.
|
|
|
|
.It Cm eject
|
|
|
|
Eject the disc.
|
|
|
|
.It Cm close
|
|
|
|
Inject the disc.
|
|
|
|
.It Cm volume Ar left_channel Ar right_channel
|
2001-04-09 16:30:53 +04:00
|
|
|
Set the volume of left channel to
|
1999-06-05 17:21:59 +04:00
|
|
|
.Ar left_channel
|
2001-04-09 16:30:53 +04:00
|
|
|
and the volume of right channel to
|
|
|
|
.Ar right_channel .
|
|
|
|
Allowed values are in the range 0-255.
|
2000-08-30 14:13:52 +04:00
|
|
|
.It Cm volume Ar value
|
2001-04-09 16:30:53 +04:00
|
|
|
Set the volume of both left channel right channel to
|
|
|
|
.Ar value .
|
|
|
|
Allowed values are in the range 0-255.
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm volume mute
|
1999-06-05 17:21:59 +04:00
|
|
|
Turn the sound off.
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm volume mono
|
1999-06-05 17:21:59 +04:00
|
|
|
Set the mono mode.
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm volume stereo
|
1999-06-05 17:21:59 +04:00
|
|
|
Set the stereo mode.
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm volume left
|
1999-06-05 17:21:59 +04:00
|
|
|
Play the left subtrack on both left and right channels.
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm volume right
|
1999-06-05 17:21:59 +04:00
|
|
|
Play the right subtrack on both left and right channels.
|
|
|
|
.It Cm info
|
|
|
|
Print the table of contents.
|
2001-04-09 16:30:53 +04:00
|
|
|
.It Cm status
|
2001-08-20 13:50:10 +04:00
|
|
|
Display the current audio, media and volume status.
|
1999-06-05 17:21:59 +04:00
|
|
|
.It Cm help
|
|
|
|
Print the list of available commands.
|
|
|
|
.It Cm reset
|
|
|
|
Perform the hardware reset of the device.
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm set msf
|
1999-06-05 17:21:59 +04:00
|
|
|
Set minute-second-frame ioctl mode (default).
|
2000-09-18 20:47:11 +04:00
|
|
|
.It Cm set lba
|
1999-06-05 17:21:59 +04:00
|
|
|
Set LBA ioctl mode.
|
|
|
|
.It Cm quit
|
|
|
|
Quit the program.
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /dev/rmcd0c -compact
|
|
|
|
.It Pa /dev/cd??
|
|
|
|
.It Pa /dev/mcd??
|
|
|
|
.El
|
2000-06-14 18:38:52 +04:00
|
|
|
.Sh SEE ALSO
|
2004-03-19 00:13:19 +03:00
|
|
|
.Xr disklabel 8 ,
|
|
|
|
.Xr mscdlabel 8
|
1999-06-05 17:21:59 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command first appeared in
|
1999-07-16 18:15:49 +04:00
|
|
|
.Nx 1.5 .
|
2001-10-18 02:32:41 +04:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Jean-Marc Zucconi ,
|
|
|
|
.An Andrey A.\ Chernov ,
|
|
|
|
.An Serge V.\ Vakulenko ,
|
|
|
|
.An Andrew Doran ,
|
|
|
|
.An Sergey Svishchev .
|