home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / datatypes / soundclass.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  2KB  |  99 lines

  1. #ifndef DATATYPES_SOUNDCLASS_H
  2. #define DATATYPES_SOUNDCLASS_H 1
  3. /*
  4. ** soundclass.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for soundclass.h
  17. */
  18. #ifndef VoiceHeaderPtr
  19. #define VoiceHeaderPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for soundclass.h
  23. */
  24.       
  25. #ifndef UTILITY_TAGITEM_H
  26. #include <utility/tagitem.h>
  27. #endif
  28.  
  29. #ifndef DATATYPES_DATATYPESCLASS_H
  30. #include <datatypes/datatypesclass.h>
  31. #endif
  32.  
  33. #ifndef LIBRARIES_IFFPARSE_H
  34. #include <libraries/iffparse.h>
  35. #endif
  36.  
  37.  
  38. /*****************************************************************************/
  39.  
  40. #define SOUNDDTCLASS        "sound.datatype"
  41.  
  42. /*****************************************************************************/
  43.  
  44. /* Sound attributes */
  45. #define SDTA_Dummy      (DTA_Dummy + 500)
  46. #define SDTA_VoiceHeader    (SDTA_Dummy + 1)
  47. #define SDTA_Sample     (SDTA_Dummy + 2)
  48.    /* (BYTE  *) Sample data */
  49.  
  50. #define SDTA_SampleLength   (SDTA_Dummy + 3)
  51.    /* (LONGINT) Length of the sample data in UBYTEs */
  52.  
  53. #define SDTA_Period     (SDTA_Dummy + 4)
  54.     /* (SHORTINT) Period */
  55.  
  56. #define SDTA_Volume     (SDTA_Dummy + 5)
  57.     /* (SHORTINT) Volume.  Range from 0 to 64 */
  58.  
  59. #define SDTA_Cycles     (SDTA_Dummy + 6)
  60.  
  61. /* The following tags are new for V40 */
  62. #define SDTA_SignalTask     (SDTA_Dummy + 7)
  63.     /* (STRUCT Task *) Task to signal when sound is complete or
  64.     _next buffer needed. */
  65.  
  66. #define SDTA_SignalBit      (SDTA_Dummy + 8)
  67.     /* (BYTE) Signal bit to use on completion or -1 to disable */
  68.  
  69. #define SDTA_Continuous     (SDTA_Dummy + 9)
  70.     /* (LONGINT) Playing a continuous stream of data.  Defaults to
  71.     FALSE. */
  72.  
  73. /*****************************************************************************/
  74.  
  75. #define CMP_NONE     0
  76. #define CMP_FIBDELTA 1
  77.  
  78. STRUCT VoiceHeader
  79.  
  80.     LONGINT        vh_OneShotHiSamples 
  81.     LONGINT        vh_RepeatHiSamples 
  82.     LONGINT        vh_SamplesPerHiCycle 
  83.     SHORTINT        vh_SamplesPerSec 
  84.     BYTE         vh_Octaves 
  85.     BYTE         vh_Compression 
  86.     LONGINT        vh_Volume 
  87. END STRUCT 
  88.  
  89. /*****************************************************************************/
  90.  
  91. /* IFF types */
  92. #define ID_8SVX 944985688 
  93. #define ID_VHDR 1447576658 
  94. #define ID_BODY &H424F4459 
  95.  
  96. /*****************************************************************************/
  97.  
  98. #endif  /* DATATYPES_SOUNDCLASS_H */
  99.