home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 224a.lha / Includes / devices / audio next >
Encoding:
Text File  |  1989-04-08  |  1.2 KB  |  43 lines

  1.  
  2. : AUDIONAME   " audio.device"  drop   ;
  3.  
  4. EQU  ADHARD_CHANNELS            4
  5.  
  6. EQU  ADALLOC_MINPREC            -128
  7. EQU  ADALLOC_MAXPREC            127
  8.  
  9. EQU  ADCMD_FREE                 9+0     ( CMD_NONSTD=9;exec/io )
  10. EQU  ADCMD_SETPREC              9+1
  11. EQU  ADCMD_FINISH               9+2
  12. EQU  ADCMD_PERVOL               9+3
  13. EQU  ADCMD_LOCK                 9+4
  14. EQU  ADCMD_WAITCYCLE            9+5
  15. EQU  ADCMDB_NOUNIT              5
  16. EQU  ADCMDF_NOUNIT              1<<5
  17. EQU  ADCMD_ALLOCATE             ADCMDF_NOUNIT+0
  18.  
  19. EQU  ADIOB_PERVOL               4
  20. EQU  ADIOF_PERVOL               1<<4
  21. EQU  ADIOB_SYNCCYCLE            5
  22. EQU  ADIOF_SYNCCYCLE            1<<5
  23. EQU  ADIOB_NOWAIT               6
  24. EQU  ADIOF_NOWAIT               1<<6
  25. EQU  ADIOB_WRITEMESSAGE         7
  26. EQU  ADIOF_WRITEMESSAGE         1<<7
  27.  
  28. EQU  ADIOERR_NOALLOCATION       -10
  29. EQU  ADIOERR_ALLOCFAILED        -11
  30. EQU  ADIOERR_CHANNELSTOLEN      -12
  31.  
  32. {s IOAudio
  33.     struct  32 ioa_Request      ( { IORequest=32;exec/io )
  34.     WORD    ioa_AllocKey
  35.     APTR    ioa_Data
  36.     LONG    ioa_Length
  37.     WORD    ioa_Period
  38.     WORD    ioa_Volume
  39.     WORD    ioa_Cycles
  40.     struct  20 ioa_WriteMsg     ( { Message=20;exec/ports )
  41.    s}
  42.  
  43.