home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / datatypes / soundclass.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  86 lines

  1. #ifndef    DATATYPES_SOUNDCLASS_H
  2. #define    DATATYPES_SOUNDCLASS_H
  3. /*
  4. **  $VER: soundclass.h 39.3 (26.4.93)
  5. **  Includes Release 40.15
  6. **
  7. **  Interface definitions for DataType sound objects.
  8. **
  9. **  (C) Copyright 1992-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. */
  12.  
  13. #ifndef    UTILITY_TAGITEM_H
  14. #include <utility/tagitem.h>
  15. #endif
  16.  
  17. #ifndef    DATATYPES_DATATYPESCLASS_H
  18. #include <datatypes/datatypesclass.h>
  19. #endif
  20.  
  21. #ifndef    LIBRARIES_IFFPARSE_H
  22. #include <libraries/iffparse.h>
  23. #endif
  24.  
  25. /*****************************************************************************/
  26.  
  27. #define    SOUNDDTCLASS        "sound.datatype"
  28.  
  29. /*****************************************************************************/
  30.  
  31. /* Sound attributes */
  32. #define    SDTA_Dummy        (DTA_Dummy + 500)
  33. #define    SDTA_VoiceHeader    (SDTA_Dummy + 1)
  34. #define    SDTA_Sample        (SDTA_Dummy + 2)
  35.    /* (UBYTE *) Sample data */
  36.  
  37. #define    SDTA_SampleLength    (SDTA_Dummy + 3)
  38.    /* (ULONG) Length of the sample data in UBYTEs */
  39.  
  40. #define    SDTA_Period        (SDTA_Dummy + 4)
  41.     /* (UWORD) Period */
  42.  
  43. #define    SDTA_Volume        (SDTA_Dummy + 5)
  44.     /* (UWORD) Volume.    Range from 0 to 64 */
  45.  
  46. #define    SDTA_Cycles        (SDTA_Dummy + 6)
  47.  
  48. /* The following tags are new for V40 */
  49. #define    SDTA_SignalTask        (SDTA_Dummy + 7)
  50.     /* (struct Task *) Task to signal when sound is complete or
  51.     next buffer needed. */
  52.  
  53. #define    SDTA_SignalBit        (SDTA_Dummy + 8)
  54.     /* (BYTE) Signal bit to use on completion or -1 to disable */
  55.  
  56. #define    SDTA_Continuous        (SDTA_Dummy + 9)
  57.     /* (ULONG) Playing a continuous stream of data.  Defaults to
  58.     FALSE. */
  59.  
  60. /*****************************************************************************/
  61.  
  62. #define CMP_NONE     0
  63. #define CMP_FIBDELTA 1
  64.  
  65. struct VoiceHeader
  66. {
  67.     ULONG         vh_OneShotHiSamples;
  68.     ULONG         vh_RepeatHiSamples;
  69.     ULONG         vh_SamplesPerHiCycle;
  70.     UWORD         vh_SamplesPerSec;
  71.     UBYTE         vh_Octaves;
  72.     UBYTE         vh_Compression;
  73.     ULONG         vh_Volume;
  74. };
  75.  
  76. /*****************************************************************************/
  77.  
  78. /* IFF types */
  79. #define ID_8SVX MAKE_ID('8','S','V','X')
  80. #define ID_VHDR MAKE_ID('V','H','D','R')
  81. #define ID_BODY MAKE_ID('B','O','D','Y')
  82.  
  83. /*****************************************************************************/
  84.  
  85. #endif    /* DATATYPES_SOUNDCLASS_H */
  86.