This is the README for CDPlayer.1.0.N.b.tar.gz [Download] [Browse] [Up]
Here's something to entertain everyone using the new NeXT CD-ROM ... Find attached a command-line program to play audio CDs on the NeXT CD-ROM. You'll need to connect the CD-ROM to a stereo through the two RCA connectors in the back of the drive, or to the stereo headphones in the front. Operation: usage: cdplayer [-p|-r] -t<target>|-d<device> [<track>] (Note: this program should be run setuid-root so it can read and write to the specified SCSI device.) Options: -p - pause audio play operation -r - resume audio play operation -t <target> - specify SCSI target (i.e. SCSI Id) -d <device> - specify raw SD device (i.e. -d /dev/rsd1h) <track> - play specific track-number The -d option can be used to force the NeXT to request the insertion of a CD before any play operation is started. Option -t can be used only if a CD is already inserted in the drive. NOTE: to eject a CD, you'll have to use the disk command as root (i.e. disk -e /dev/rsd1h)! When a track is requested for playing, cdplayer will send a request to the CD SCSI controller to begin audio play, and then exit. If the request fails, an error message will be produced. Otherwise, the specified track will play until completion or another request is made (i.e. cdplayer is used to play another track, pause, etc.)! Omitting <track> stops an audio play operation. The -r option can be used to force continuous play operation (i.e. play all tracks in a CD). To do this, however, you must issue a stop playing command first. For example, use the following to force continuous play: $ cdplayer -d /dev/rsd1h $ cdplayer -d /dev/rsd1h -r NOTE: Play quality on a CD-ROM does not compare to high-fidelity (real) CD players!!!! In the future, the NeXTstep interface I plan to develop will provide for reading the CD toc (table of contents), determining what Read-Only devices exist on the SCSI bus, and many other goodies! Enjoy! ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ Felix A. Lugo E-Mail: (NeXTmail preferred) Felix_A_Lugo@ATT.COM coco@ihcoco.ATT.COM HOME NeXTcube home@ihcoco.ATT.COM ÐÐÐÐÐÐÐÐÐ---ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ ---------------End of Felix's Notes---------------------------------------------------- Since I can't stand typing lots of command-line stuff, I added a NeXTstep front-end to Felix's cdplayer application. In this package are Felix's Notes (above) the command-line cdplayer application & my NeXTstep front-end for cdplayer. Place cdplayer in your path (/usr/bin is a good place or /usr/local/bin if you have created this directory & have it in your path) and make it SUID root. #chmod 4755 /usr/bin/cdplayer Also, make /usr/etc/disk SUID root #chmod 4755 /usr/etc/disk Then double-click on CDPlayer & enjoy. ---------------- Tyler Gingrich (614) 292-7211 tyler @kiwi.swhs.ohio-state.edu (NeXTmail Accepted) PS: I know this whole thing is a little crude, but it works & will be improved in the future.
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.