1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1996-10-05 22:27:30 +00:00
|
|
|
.\"
|
1995-08-18 11:41:32 +00:00
|
|
|
.Dd July 3, 1995
|
|
|
|
.Dt CDCONTROL 1
|
|
|
|
.Os FreeBSD
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cdcontrol
|
|
|
|
.Nd compact disc control utility
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1999-01-31 15:30:21 +00:00
|
|
|
.Op Fl sv
|
|
|
|
.Op Fl f Ar device
|
|
|
|
.Op Ar command ...
|
1995-08-18 11:41:32 +00:00
|
|
|
.Sh DESCRIPTION
|
1997-09-04 11:52:28 +00:00
|
|
|
.Nm Cdcontrol
|
2000-03-01 14:09:25 +00:00
|
|
|
is a program to control audio features of a CD drive.
|
|
|
|
The device is a name such
|
1997-12-08 07:43:13 +00:00
|
|
|
as
|
|
|
|
.Pa cd0
|
|
|
|
or
|
|
|
|
.Pa mcd0 .
|
1995-08-18 11:41:32 +00:00
|
|
|
.Pp
|
|
|
|
If no command is given, then
|
1997-09-04 11:52:28 +00:00
|
|
|
.Nm
|
1995-08-18 11:41:32 +00:00
|
|
|
enters an interactive mode, reading commands from the standard input.
|
|
|
|
.Pp
|
|
|
|
The following options are available:
|
1997-12-08 07:43:13 +00:00
|
|
|
.Bl -tag -width indent
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Fl s
|
|
|
|
Silent mode - do not print table headers and human readable comments.
|
|
|
|
.It Fl v
|
|
|
|
Verbose mode - print as much information as possible.
|
1999-01-31 15:30:21 +00:00
|
|
|
.It Fl f Ar device
|
|
|
|
Specify a device, such as
|
1997-12-08 07:43:13 +00:00
|
|
|
.Pa /dev/cd0c
|
|
|
|
or
|
|
|
|
.Pa mcd0 .
|
|
|
|
Both absolute path and relative to
|
|
|
|
.Pa /dev
|
|
|
|
filename are possible.
|
1995-08-18 11:41:32 +00:00
|
|
|
Suffix `c' is added to the device name if needed.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The available commands are listed below. Only as many
|
|
|
|
characters as are required to uniquely identify a command
|
2000-03-01 14:09:25 +00:00
|
|
|
need be specified.
|
2001-05-25 09:24:50 +00:00
|
|
|
The word
|
|
|
|
.Cm play
|
|
|
|
can be omitted or the characters
|
|
|
|
.Dq +
|
|
|
|
and
|
|
|
|
.Dq -
|
|
|
|
can be used in the
|
|
|
|
place of
|
|
|
|
.Cm next
|
|
|
|
and
|
|
|
|
.Cm prev .
|
1995-08-18 11:41:32 +00:00
|
|
|
.Bl -tag -width Cm
|
1996-02-03 14:13:36 +00:00
|
|
|
.It Cm play Ar first_track Op Ar last_track
|
1995-08-18 11:41:32 +00:00
|
|
|
Play from track
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar first_track
|
1995-08-18 11:41:32 +00:00
|
|
|
to track
|
1998-01-07 07:43:04 +00:00
|
|
|
.Ar last_track .
|
1995-08-18 11:41:32 +00:00
|
|
|
The first track has number 1.
|
1997-12-08 07:43:13 +00:00
|
|
|
Can be omitted in all cases.
|
2001-02-01 16:44:04 +00:00
|
|
|
.It Cm play Xo
|
|
|
|
.Ar start_m : Ns Ar start_s . Ns Ar start_f
|
|
|
|
.Oo Ar end_m : Ns Ar end_s . Ns
|
|
|
|
.Ar end_f Oc
|
|
|
|
.Xc
|
1995-08-18 11:41:32 +00:00
|
|
|
Play from the absolute address
|
|
|
|
(MSF) defined by
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar start_m
|
1995-08-18 11:41:32 +00:00
|
|
|
in minutes,
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar start_s ,
|
1995-08-18 11:41:32 +00:00
|
|
|
in seconds and
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar start_f
|
1996-01-30 13:52:50 +00:00
|
|
|
(frame number) to the absolute address defined by
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar end_m
|
1995-08-18 11:41:32 +00:00
|
|
|
in minutes,
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar end_s ,
|
1995-08-18 11:41:32 +00:00
|
|
|
in seconds and
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar end_f
|
2000-03-02 14:54:02 +00:00
|
|
|
(frame number). Minutes are in the range 0-99.
|
|
|
|
Seconds are in the range 0-59.
|
1995-08-18 11:41:32 +00:00
|
|
|
Frame numbers are in the range 0-74.
|
1996-02-03 14:13:36 +00:00
|
|
|
.It Cm play Op Ar #start_block Op length
|
1995-08-18 11:41:32 +00:00
|
|
|
Play starting from the logical block
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar start_block
|
1995-08-18 11:41:32 +00:00
|
|
|
using
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar length
|
1995-08-18 11:41:32 +00:00
|
|
|
logical blocks.
|
2001-05-25 09:24:50 +00:00
|
|
|
.It Cm next Op Ar tracks
|
|
|
|
Skip forward a number of tracks (default 1).
|
|
|
|
.It Cm prev Op Ar tracks
|
|
|
|
Skip backward a number of tracks (default 1).
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Cm pause
|
2000-03-01 14:09:25 +00:00
|
|
|
Stop playing.
|
|
|
|
Do not stop the disc.
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Cm resume
|
2000-03-01 14:09:25 +00:00
|
|
|
Resume playing.
|
|
|
|
Used after the
|
1997-12-08 07:43:13 +00:00
|
|
|
.Em pause
|
|
|
|
command.
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Cm stop
|
|
|
|
Stop the disc.
|
|
|
|
.It Cm eject
|
|
|
|
Eject the disc.
|
1996-02-09 00:22:17 +00:00
|
|
|
.It Cm close
|
1996-02-02 22:03:37 +00:00
|
|
|
Inject the disc.
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Cm volume Ar left_channel Ar right_channel
|
|
|
|
Set the volume of left channel to
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar left_channel
|
1995-08-18 11:41:32 +00:00
|
|
|
and the volume of right channel to
|
1997-12-08 07:43:13 +00:00
|
|
|
.Ar right_channel .
|
1995-08-18 11:41:32 +00:00
|
|
|
Allowed values are in the range 0-255.
|
|
|
|
.It Cm volume Ar mute
|
|
|
|
Turn the sound off.
|
|
|
|
.It Cm volume Ar mono
|
|
|
|
Set the mono mode.
|
|
|
|
.It Cm volume Ar stereo
|
|
|
|
Set the stereo mode.
|
|
|
|
.It Cm volume Ar left
|
|
|
|
Play the left subtrack on both left and right channels.
|
|
|
|
.It Cm volume Ar right
|
|
|
|
Play the right subtrack on both left and right channels.
|
|
|
|
.It Cm info
|
1996-10-05 22:27:30 +00:00
|
|
|
Print the table of contents.
|
2000-12-27 15:30:30 +00:00
|
|
|
.It Cm status Xo
|
1998-01-26 00:57:54 +00:00
|
|
|
.Op Ar audio | media | volume
|
2000-12-27 15:30:30 +00:00
|
|
|
.Xc
|
1995-08-18 11:41:32 +00:00
|
|
|
Print the information about the disc:
|
2000-12-27 15:30:30 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "volume" -compact
|
|
|
|
.It Ar audio
|
|
|
|
the current playing status and position
|
|
|
|
.It Ar media
|
|
|
|
the current media catalog status
|
|
|
|
.It Ar volume
|
1996-02-03 14:13:36 +00:00
|
|
|
the current values of the volume for left and right channels.
|
2000-12-27 15:30:30 +00:00
|
|
|
.El
|
2000-07-13 22:56:43 +00:00
|
|
|
.It Cm cdid
|
|
|
|
Display the serial number of the cd using the method used by the
|
|
|
|
cddb (http://www.cddb.org/) project.
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Cm help
|
|
|
|
Print the list of available commands.
|
|
|
|
.It Cm debug Ar on
|
|
|
|
Enable the debugging mode of the CD device driver.
|
|
|
|
.It Cm debug Ar off
|
|
|
|
Disable the driver debugging mode.
|
1996-02-03 14:13:36 +00:00
|
|
|
.It Cm reset
|
1995-08-18 11:41:32 +00:00
|
|
|
Perform the hardware reset of the device.
|
1996-02-03 14:13:36 +00:00
|
|
|
.It Cm set Ar msf
|
|
|
|
Set minute-second-frame ioctl mode (default).
|
|
|
|
.It Cm set Ar lba
|
|
|
|
Set LBA ioctl mode.
|
1995-08-18 11:41:32 +00:00
|
|
|
.It Cm quit
|
|
|
|
Quit the program.
|
2000-12-27 15:30:30 +00:00
|
|
|
.El
|
2001-01-14 16:29:24 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
The following environment variables affect the execution of
|
|
|
|
.Nm :
|
2001-01-17 08:32:08 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width CD_DRIVE -compact
|
2001-01-14 16:29:24 +00:00
|
|
|
.It Ev CDROM
|
|
|
|
The cd device to use if one isn't specified with the
|
|
|
|
.Fl f
|
|
|
|
flag.
|
2001-01-17 08:32:08 +00:00
|
|
|
.Pp
|
|
|
|
.It Ev CDPLAY
|
|
|
|
.It Ev CD_DRIVE
|
|
|
|
.It Ev DISC
|
|
|
|
.It Ev MUSIC_CD
|
2001-01-16 20:31:53 +00:00
|
|
|
These variables have been deprecated in favour of
|
|
|
|
.Ev CDROM .
|
2001-01-14 16:29:24 +00:00
|
|
|
.El
|
1995-08-18 11:41:32 +00:00
|
|
|
.Sh FILES
|
2000-05-07 09:50:44 +00:00
|
|
|
.Bl -tag -width /dev/mcd0c -compact
|
|
|
|
.It Pa /dev/cd0c
|
|
|
|
.It Pa /dev/mcd0c
|
|
|
|
.It Pa /dev/acd0c
|
1995-08-18 11:41:32 +00:00
|
|
|
.El
|
|
|
|
.Sh AUTHORS
|
1997-12-08 07:43:13 +00:00
|
|
|
.An Jean-Marc Zucconi ,
|
|
|
|
.An Andrey A.\ Chernov ,
|
|
|
|
.An Serge V.\ Vakulenko
|
1995-08-18 11:41:32 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1997-09-04 11:52:28 +00:00
|
|
|
.Nm
|
1996-08-23 00:57:08 +00:00
|
|
|
command appeared in
|
|
|
|
.Fx 2.1 .
|