cdplayer" -- Command" "
Play audio CDs
ccddppllaayyeerr [[eejjeecctt iinnffoo ppaauussee ppllaayy [[_t_r_a_c_k]] rreessuummee sskkiipp ssttoopp vvoolluummee _l_e_v_e_l]
cdplayer gives you a text-based interface
with which you can play audio compact disks (CDs) through a
COHERENT CD-ROM device. It reads environmental variable
CD_DEVICE for the name of the device to
manipulate. If this variable is not set, by default
cdplayer manipulates device
/dev/cdrom.
cdplayer normally is invoked with one of
the following commands. If you invoke it without a command
(or with a command it does not recognize), it prints a usage
message and exits. If an error occurs,
cdplayer returns an exit status of one.
cdplayer recognizes the following commands:
- eejjeecctt
- Eject the CD from the drive. Note that not every CD
drive supports this feature; in particular, the Mitsumi
model LU005 does not.
- iinnffoo
- Display information about the CD that is in the drive:
the total number of tracks, total playing time, playing time
per track, drive status, and track being played.
- ppaauussee
- Pause the audio CD. Unlike the command
stop, described below,
cdplayer remembers the point at which
playing stopped, and will resume playing at that point. If
the CD is not playing, cdplayer ignores
this command. To restart a paused CD, use the command
cdplayer resume.
- ppllaayy [[_t_r_a_c_k]]
- Play the CD, beginning at track. If no
track is given, it begins as track one.
- rreessuummee
- Resume playing a paused CD. If the CD had not been
paused, cdplayer ignores this command.
- sskkiipp
- Skip to the next track. If the CD is on its last
track, cdplayer returns it to its first
track.
- ssttoopp
- Stop playing this CD. If the CD is not being played,
cdplayer ignores this command. The CD
player ``forgets'' the point at which it had been playing
the CD. To begin playing this CD again, use the command
cdplayer play.
- vvoolluummee _l_e_v_e_l
- Set the CD drive's volume to level, which
must be a number between 0 (softest) and 255 (loudest).
Note that not every drive supports this feature.
Environment
CCDD__DDEEVVIICCEE -- The CD-ROM device to manipulate.
See Also
Notes
cdplayer was written by Mark Buckaway
(mark@datasoft.com) for the Linux operating system. Please
direct comments concerning its COHERENT port to
support@mwc.com. It is is distributed under the GNU Public
License. Full source code for this program is available on
the Mark Williams Bulletin Board and on other publically
available systems.