home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / devices / audio.h next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.2 KB  |  59 lines

  1. #ifndef DEVICES_AUDIO_H
  2. #define DEVICES_AUDIO_H
  3. /*
  4. ** $Filename: devices/audio.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.3 $
  7. ** $Date: 90/08/29 $
  8. **
  9. ** audio.device include file
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_IO_H
  16. #include "exec/io.h"
  17. #endif
  18.  
  19. #define AUDIONAME "audio.device"
  20.  
  21. #define ADHARD_CHANNELS 4
  22.  
  23. #define ADALLOC_MINPREC -128
  24. #define ADALLOC_MAXPREC 127
  25.  
  26. #define ADCMD_FREE (CMD_NONSTD+0)
  27. #define ADCMD_SETPREC (CMD_NONSTD+1)
  28. #define ADCMD_FINISH (CMD_NONSTD+2)
  29. #define ADCMD_PERVOL (CMD_NONSTD+3)
  30. #define ADCMD_LOCK (CMD_NONSTD+4)
  31. #define ADCMD_WAITCYCLE (CMD_NONSTD+5)
  32. #define ADCMD_ALLOCATE 32
  33.  
  34. #define ADIOB_PERVOL 4
  35. #define ADIOF_PERVOL (1<<4)
  36. #define ADIOB_SYNCCYCLE 5
  37. #define ADIOF_SYNCCYCLE (1<<5)
  38. #define ADIOB_NOWAIT 6
  39. #define ADIOF_NOWAIT (1<<6)
  40. #define ADIOB_WRITEMESSAGE 7
  41. #define ADIOF_WRITEMESSAGE (1<<7)
  42.  
  43. #define ADIOERR_NOALLOCATION -10
  44. #define ADIOERR_ALLOCFAILED -11
  45. #define ADIOERR_CHANNELSTOLEN -12
  46.  
  47. struct IOAudio {
  48.  struct IORequest ioa_Request;
  49.  WORD ioa_AllocKey;
  50.  UBYTE *ioa_Data;
  51.  ULONG ioa_Length;
  52.  UWORD ioa_Period;
  53.  UWORD ioa_Volume;
  54.  UWORD ioa_Cycles;
  55.  struct Message ioa_WriteMsg;
  56. };
  57.  
  58. #endif 
  59.