Discstatus(kdevt dev)
As a complement to
drivestatus(), this function can provide the
general CDROM-routines with information about the current disc that is
inserted in the drive represented by dev. The history of development
of the CD's use as a carrier medium for various digital information
has lead to many different disc types, hence this function can return:

$#$ & $/*$#$*/$
CDSNOINFO &
noinformationavailable
CDSNODISC &
nodiscisinserted,
ortrayisopened
CDSAUDIO &
Audiodisc(2352
audiobytes/
frame)
CDSDATA1 &
datadisc,
mode1(2048
userbytes/
frame)
CDSDATA2 &
datadisc,
mode2(2336
userbytes/
frame)
CDSXA21 &
mixeddata(
XA),
mode2,
form1(2048
userbytes)
CDSXA22 &
mixeddata(
XA),
mode2,
form1(2324
userbytes)
As far as I know, CDROMs are always of type
CDSDATA1. For
some information concerning frame layout of the various disc types, see
a recent version of cdrom.h.