home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
cdrom
/
cdt
/
cdt.doc
< prev
next >
Wrap
Text File
|
1995-11-24
|
5KB
|
175 lines
INTRODUCTION
CDT is a small shell utility to cope with SCSI devices, but mainly with
a CD-ROM. It has been written to be able to start audio playback with
"stupid" drives that do support an advanced audio command as eg. used by
SCSIutil. Its also possible to issue a load or eject command as well as
to lock or unlock a drive.
LEGAL
CDT is Copyright © 1995 by Gunther Nikl, All Rights Reserved.
Permission granted to distribute free of charge, in unchanged form,
provided this documentation file is accompanied with the program.
Permission granted to include on freely distributable software
libraries such as Fred Fish's software library and the Aminet CD-ROM.
CDT is provided as is, without any kind of warranty. By using CDT, the
user accepts full responsibility for possible damage or data loss that
might occur, directly or indirectly, from using CDT.
CDT is GIFTWARE. If you use CDT, send me a gift (your own program, beer,
chocolate, a new computer, a money donation, etc.), the address is in
the end of this document.
FEATURES
- supports any CD-ROM that has a SCSI-2 compliant device driver
(thus also atapi drives)
- can start/stop/pause/resume audio playback
- written in C (and compiled with GCC 2.7.0 ;-)
- 100% pure, can be made resident
INSTALLATION
Installing CDT is fairly easy. Copy it to a location on you harddisk
(preferable in the search path, eg. C:). Thats all :-).
I would recommend to create aliases to avoid
USAGE
CDT can only be started from CLI! Do NOT try to start the program from
Workbench since this will lead to a system crash!
CDTs shell template:
D=DEVICE,U=UNIT/K/N,STARTTRACK/N,STARTINDEX/N,LASTTRACK/N,LASTINDEX/N,
LOAD/S,EJECT/S,LOCK/S,UNLOCK/S,PLAY/S,STOP/S,PAUSE/S,RESUME/S,INFO/S
Detailed explanation:
- D=DEVICE
used to specify the lowlevel device driver to access the SCSI drive.
Usual names are: scsi.device, atapi.device, etc.
Alternative you can also specify a DOS-device. That means the name
the drive is accessed from DOS, eg. "CD0:". CDT will try to get the
name of the device driver and the device unit from DOS. If that fails
it will use its internal defaults. An error message of the form:
"couldn't open `scsi.device' unit `4'
can be a hint that the information searched for wasn't available.
Default device driver is `scsi.device'.
- U=UNIT/K/N
used to specify the driver number. If as device a DOS-device was
specified this option will be ignored but only if all required
information from the dos-device could be retrieved.
Default unit is `4' (do not ask why ;-)
- STARTTRACK/N
first title to play (starts with 1)
defaults to 1.
- STARTINDEX/N
which start index but can usually be omitted
defaults to 0.
- LASTTRACK/N
last title to play (max. 99)
defaults to 99.
- LASTINDEX/N
which end index but can usually be omitted
defaults to 0.
- PLAY/S
starts the audio playback with the parameters above. First CDT will
use an `intelligent' command to start the audio playback. If this
fails CDT will try a more generic command to play an audio cd. This
shall make CDT work with every CD-ROM drive, at least I hope so ...
Some examples:
- play
will play the complete cd
- play 5
starts audio playback with title number 5
- play 5 0 9
will play from title number 5 to 9 (0 is the startindex, required)
- PAUSE/S
pauses audio playback (if its playing ignored otherwise)
- RESUME/S
resumes audio playback (if its paused ignored otherwise)
- LOAD/S
will close the drive's tray (if it was open)
- EJECT/S
will open the drive's tray (if it was closed)
- LOCK/S
prevents the opening of the tray
- UNLOCK/S
allows the opening of the tray
- INFO/S
prints information about the drive. This works also for harddisks.
BUGS
This program has only be tested with IDE drives that device drivers
emulate a SCSI-2 environment. The two tested drives had some problems:
- playing only parts of an audio cd doesn't work (not quite true,
if only the last title was requested it works :-)
(Toshiba XM-5302B, Sony CDU-77E)
- `pause' option does not work with Sony CDU-77E, the drive aborts
the audio playback completely
- closing the drive tray without inserted medium will give an error
message
HISTORY
1.0 - initial release
AUTHOR
CDT is written by Gunther Nikl. You can reach me by email at the address
gnikl@informmatik.uni-rostock.de
or by snailmail (for the time being, anyway) at the address
Gunther Nikl
Ziegendorfer Chaussee 96
Parchim
19370
Germany