home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / devices / audio.h next >
C/C++ Source or Header  |  1993-10-15  |  1KB  |  57 lines

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