home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / devices / cd.e < prev    next >
Text File  |  1995-07-05  |  4KB  |  173 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/nodes'
  5.  
  6. CONST CD_RESET=1,
  7.       CD_READ=2,
  8.       CD_WRITE=3,
  9.       CD_UPDATE=4,
  10.       CD_CLEAR=5,
  11.       CD_STOP=6,
  12.       CD_START=7,
  13.       CD_FLUSH=8,
  14.       CD_MOTOR=9,
  15.       CD_SEEK=10,
  16.       CD_FORMAT=11,
  17.       CD_REMOVE=12,
  18.       CD_CHANGENUM=13,
  19.       CD_CHANGESTATE=14,
  20.       CD_PROTSTATUS=15,
  21.       CD_GETDRIVETYPE=18,
  22.       CD_GETNUMTRACKS=19,
  23.       CD_ADDCHANGEINT=20,
  24.       CD_REMCHANGEINT=21,
  25.       CD_GETGEOMETRY=22,
  26.       CD_EJECT=23,
  27.       CD_INFO=32,
  28.       CD_CONFIG=33,
  29.       CD_TOCMSF=34,
  30.       CD_TOCLSN=35,
  31.       CD_READXL=36,
  32.       CD_PLAYTRACK=37,
  33.       CD_PLAYMSF=38,
  34.       CD_PLAYLSN=39,
  35.       CD_PAUSE=40,
  36.       CD_SEARCH=41,
  37.       CD_QCODEMSF=42,
  38.       CD_QCODELSN=43,
  39.       CD_ATTENUATE=44,
  40.       CD_ADDFRAMEINT=45,
  41.       CD_REMFRAMEINT=46,
  42.       CDERR_OPENFAIL=-1,
  43.       CDERR_ABORTED=-2,
  44.       CDERR_NOCMD=-3,
  45.       CDERR_BADLENGTH=-4,
  46.       CDERR_BADADDRESS=-5,
  47.       CDERR_UNITBUSY=-6,
  48.       CDERR_SELFTEST=-7,
  49.       CDERR_NOTSPECIFIED=20,
  50.       CDERR_NOSECHDR=21,
  51.       CDERR_BADSECPREAMBLE=22,
  52.       CDERR_BADSECID=23,
  53.       CDERR_BADHDRSUM=24,
  54.       CDERR_BADSECSUM=25,
  55.       CDERR_TOOFEWSECS=26,
  56.       CDERR_BADSECHDR=27,
  57.       CDERR_WRITEPROT=28,
  58.       CDERR_NODISK=29,
  59.       CDERR_SEEKERROR=30,
  60.       CDERR_NOMEM=31,
  61.       CDERR_BADUNITNUM=32,
  62.       CDERR_BADDRIVETYPE=33,
  63.       CDERR_DRIVEINUSE=34,
  64.       CDERR_POSTRESET=35,
  65.       CDERR_BADDATATYPE=36,
  66.       CDERR_INVALIDSTATE=37,
  67.       CDERR_PHASE=42,
  68.       CDERR_NOBOARD=50,
  69.       TAGCD_PLAYSPEED=1,
  70.       TAGCD_READSPEED=2,
  71.       TAGCD_READXLSPEED=3,
  72.       TAGCD_SECTORSIZE=4,
  73.       TAGCD_XLECC=5,
  74.       TAGCD_EJECTRESET=6
  75.  
  76. OBJECT cdinfo
  77.   playspeed:INT  -> This is unsigned
  78.   readspeed:INT  -> This is unsigned
  79.   readxlspeed:INT  -> This is unsigned
  80.   sectorsize:INT  -> This is unsigned
  81.   xlecc:INT  -> This is unsigned
  82.   ejectreset:INT  -> This is unsigned
  83.   reserved1[4]:ARRAY OF INT  -> Array is unsigned
  84.   maxspeed:INT  -> This is unsigned
  85.   audioprecision:INT  -> This is unsigned
  86.   status:INT  -> This is unsigned
  87.   reserved2[4]:ARRAY OF INT  -> Array is unsigned
  88. ENDOBJECT
  89.  
  90. CONST CDSTSB_CLOSED=0,
  91.       CDSTSB_DISK=1,
  92.       CDSTSB_SPIN=2,
  93.       CDSTSB_TOC=3,
  94.       CDSTSB_CDROM=4,
  95.       CDSTSB_PLAYING=5,
  96.       CDSTSB_PAUSED=6,
  97.       CDSTSB_SEARCH=7,
  98.       CDSTSB_DIRECTION=8,
  99.       CDSTSF_CLOSED=1,
  100.       CDSTSF_DISK=2,
  101.       CDSTSF_SPIN=4,
  102.       CDSTSF_TOC=8,
  103.       CDSTSF_CDROM=$10,
  104.       CDSTSF_PLAYING=$20,
  105.       CDSTSF_PAUSED=$40,
  106.       CDSTSF_SEARCH=$80,
  107.       CDSTSF_DIRECTION=$100,
  108.       CDMODE_NORMAL=0,
  109.       CDMODE_FFWD=1,
  110.       CDMODE_FREV=2
  111.  
  112. OBJECT rmsf
  113.   reserved:CHAR
  114.   minute:CHAR
  115.   second:CHAR
  116.   frame:CHAR
  117. ENDOBJECT
  118.  
  119. OBJECT lsnmsf
  120. -> a) next is unioned with "lsn:LONG"
  121.   msf:rmsf
  122. ENDOBJECT
  123.  
  124. OBJECT cdxl
  125.   node:mln
  126.   buffer:PTR TO CHAR
  127.   length:LONG
  128.   actual:LONG
  129.   intdata:LONG
  130.   intcode:LONG
  131. ENDOBJECT
  132.  
  133. OBJECT tocsummary
  134.   firsttrack:CHAR
  135.   lasttrack:CHAR
  136.   leadout:lsnmsf
  137. ENDOBJECT
  138.  
  139. OBJECT tocentry
  140.   ctladr:CHAR
  141.   track:CHAR
  142.   position:lsnmsf
  143. ENDOBJECT
  144.  
  145. OBJECT cdtoc
  146. -> a) next is unioned with "summary:tocsummary"
  147.   entry:tocentry
  148. ENDOBJECT
  149.  
  150. OBJECT qcode
  151.   ctladr:CHAR
  152.   track:CHAR
  153.   index:CHAR
  154.   zero:CHAR
  155.   trackposition:lsnmsf
  156.   diskposition:lsnmsf
  157. ENDOBJECT
  158.  
  159. CONST CTLADR_CTLMASK=$F0,
  160.       CTL_CTLMASK=$D0,
  161.       CTL_2AUD=0,
  162.       CTL_2AUDEMPH=$10,
  163.       CTL_4AUD=$80,
  164.       CTL_4AUDEMPH=$90,
  165.       CTL_DATA=$40,
  166.       CTL_COPYMASK=$20,
  167.       CTL_COPY=$20,
  168.       CTLADR_ADRMASK=$F,
  169.       ADR_POSITION=1,
  170.       ADR_UPC=2,
  171.       ADR_ISRC=3,
  172.       ADR_HYBRID=5
  173.