home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / devices / audio.e next >
Text File  |  1995-07-05  |  875b  |  44 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'exec/io',
  7.        'exec/ports'
  8.  
  9. #define AUDIONAME 'audio.device'
  10.  
  11. CONST ADHARD_CHANNELS=4,
  12.       ADALLOC_MINPREC=$FFFFFF80,
  13.       ADALLOC_MAXPREC=$7F,
  14.       ADCMD_FREE=9,
  15.       ADCMD_SETPREC=10,
  16.       ADCMD_FINISH=11,
  17.       ADCMD_PERVOL=12,
  18.       ADCMD_LOCK=13,
  19.       ADCMD_WAITCYCLE=14,
  20.       ADCMD_ALLOCATE=$20,
  21.       ADIOB_PERVOL=4,
  22.       ADIOF_PERVOL=16,
  23.       ADIOB_SYNCCYCLE=5,
  24.       ADIOF_SYNCCYCLE=$20,
  25.       ADIOB_NOWAIT=6,
  26.       ADIOF_NOWAIT=$40,
  27.       ADIOB_WRITEMESSAGE=7,
  28.       ADIOF_WRITEMESSAGE=$80,
  29.       ADIOERR_NOALLOCATION=-10,
  30.       ADIOERR_ALLOCFAILED=-11,
  31.       ADIOERR_CHANNELSTOLEN=-12
  32.  
  33. OBJECT ioaudio
  34.   io:io
  35.   allockey:INT
  36.   data:PTR TO CHAR
  37.   length:LONG
  38.   period:INT  -> This is unsigned
  39.   volume:INT  -> This is unsigned
  40.   cycles:INT  -> This is unsigned
  41.   writemsg:mn
  42. ENDOBJECT     /* SIZEOF=68 */
  43.  
  44.