home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / Device / Audio.h next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  3.6 KB  |  108 lines

  1. @DATABASE "Device/Audio.h"
  2. @MASTER   "Work2:AD/IInc/Device/Audio.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:33:39
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "Device/Audio.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"Device/Audio.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_AudioDevice" LINK "Device/Audio.h/File" 20}  @{"pOS_AudioIO" LINK "Device/Audio.h/File" 25}
  16.  
  17. @ENDNODE
  18. @NODE File "Device/Audio.h"
  19. #ifndef __INC_POS_DEVICE_AUDIO_H
  20. #define __INC_POS_DEVICE_AUDIO_H
  21. /*******************************************************************
  22.  Includes Release 24
  23.  (C) Copyright 1995-1997 proDAD
  24.      All Rights Reserved
  25.  
  26.  $AUT Holger Burkarth
  27.  $DAT >>Audio.h<<   19 Dec 1996    08:25:14 - (C) ProDAD
  28. *******************************************************************/
  29. #ifndef __INC_POS_PEXEC_DEVICE_H
  30. #include <@{"pExec/Device.h" LINK "pExec/Device.h/File"}>
  31. #endif
  32.  
  33. /*\\
  34. *** OpenDevice mit Unit==~0 geht immer:
  35. *** Geeignet für: AUDIOCMD_Info, AUDIOCMD_ChannelInfo
  36. \\*/
  37.  
  38.  struct pOS_AudioDevice {@{"struct pOS_Device" LINK "pExec/Device.h/File" 21} Dev; };
  39.  
  40.  
  41. /*----------------------------------
  42. -----------------------------------*/
  43. struct pOS_AudioIO
  44. {
  45.  /** @{"struct pOS_IORequest" LINK "pExec/Device.h/File" 53} **/
  46.  
  47.   @{"struct pOS_Message" LINK "pExec/MsgPort.h/File" 41}   aio_Message;
  48.   @{"struct pOS_Device" LINK "pExec/Device.h/File" 21}   *aio_Device;   /* device node pointer  */
  49.   @{"struct pOS_Unit" LINK "pExec/Device.h/File" 29}     *aio_Unit;     /* unit (driver private) */
  50.   @{"UWORD" LINK "pExec/Types.h/File" 93}                aio_Command;  /* (enum pOS_IOReqCommands) (enum pOS_AudioIOReqCommands) */
  51.   @{"UBYTE" LINK "pExec/Types.h/File" 95}                aio_Flags;    /* (enum pOS_IOReqFlags) */
  52.   @{"SBYTE" LINK "pExec/Types.h/File" 94}                aio_Error;    /* (enum pOS_IOReqErrors) */
  53.  
  54.   union
  55.     @{"UBYTE" LINK "pExec/Types.h/File" 95}  aio_Reserved[64];
  56.  
  57.     struct /** CMD_WRITE **/
  58.       @{"struct pOS_AudioMap" LINK "pAudio/Audio.h/File" 18} *amio_AudioMap;
  59.       @{"UWORD" LINK "pExec/Types.h/File" 93}                amio_Volume;
  60.       @{"UWORD" LINK "pExec/Types.h/File" 93}                amio_Cycles;
  61.       @{"ULONG" LINK "pExec/Types.h/File" 91}                amio_Frequence;   /* Hz */
  62.       @{"ULONG" LINK "pExec/Types.h/File" 91}                amio_Length;
  63.     } aio_Map;
  64.  
  65.     struct /** AUDIOCMD_Info **/
  66.       @{"ULONG" LINK "pExec/Types.h/File" 91}  aiio_FirstHwChannels;  /* Erster Hardware-Channels */
  67.       @{"ULONG" LINK "pExec/Types.h/File" 91}  aiio_NumHwChannels;    /* Anzahl der Hardware-Channels */
  68.       @{"ULONG" LINK "pExec/Types.h/File" 91}  aiio_FirstSwChannels;  /* Erster Software-Channels */
  69.       @{"ULONG" LINK "pExec/Types.h/File" 91}  aiio_NumSwChannels;    /* Anzahl der Software-Channels */
  70.     } aio_Info;
  71.  
  72.     struct /** AUDIOCMD_ChannelInfo **/
  73.       @{"ULONG" LINK "pExec/Types.h/File" 91}                     acio_Channel;
  74.       @{"size_t" LINK "pExec/Types.h/File" 113}                    acio_InfoSize; /* sizeof(pOS_AudioInfoData) */
  75.       @{"struct pOS_AudioInfoData" LINK "pAudio/InfoData.h/File" 18} *acio_InfoData;
  76.     } aio_ChInfo;
  77.  
  78.     struct /** AUDIOCMD_AllocChannel **/
  79.       const @{"struct pOS_TagItem" LINK "pUtil/TagItem.h/File" 19} *alio_Tags;
  80.       @{"ULONG" LINK "pExec/Types.h/File" 91}                     alio_Result;
  81.     } aio_AllocCh;
  82.  
  83.     /** AUDIOCMD_FreeChannel **/
  84.  
  85.  
  86.   } aio_U;
  87.  
  88. };
  89.  
  90.  
  91.  
  92. enum pOS_AudioIOReqCommands
  93. {
  94.   AUDIOCMD_Info = CMD_NONSTD,
  95.   AUDIOCMD_ChannelInfo,
  96.   AUDIOCMD_AllocChannel,
  97.   AUDIOCMD_FreeChannel,
  98. };
  99.  
  100.  
  101. enum pOS_AudioIOReqErrors
  102. {
  103.   AUDIOIOERR_UnknownChannel=1,
  104. };
  105.  
  106. #endif
  107. @ENDNODE
  108.