home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / datatypes / soundclass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-24  |  1.6 KB  |  66 lines

  1. #ifndef    DATATYPES_SOUNDCLASS_H
  2. #define    DATATYPES_SOUNDCLASS_H
  3. /*
  4. **  $VER: soundclass.h 39.1 (24.06.92)
  5. **  Includes Release 39.108
  6. **
  7. **  Interface definitions for DataType sound objects.
  8. **
  9. **  (C) Copyright 1992 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. #define    SDTA_SampleLength    (SDTA_Dummy + 3)
  36. #define    SDTA_Period        (SDTA_Dummy + 4)
  37. #define    SDTA_Volume        (SDTA_Dummy + 5)
  38. #define    SDTA_Cycles        (SDTA_Dummy + 6)
  39.  
  40. /*****************************************************************************/
  41.  
  42. #define CMP_NONE     0
  43. #define CMP_FIBDELTA 1
  44.  
  45. struct VoiceHeader
  46. {
  47.     ULONG vh_OneShotHiSamples;
  48.     ULONG vh_RepeatHiSamples;
  49.     ULONG vh_SamplesPerHiCycle;
  50.     UWORD vh_SamplesPerSec;
  51.     UBYTE vh_Octaves;
  52.     UBYTE vh_Compression;
  53.     ULONG vh_Volume;
  54. };
  55.  
  56. /*****************************************************************************/
  57.  
  58. /* IFF types */
  59. #define ID_8SVX MAKE_ID('8','S','V','X')
  60. #define ID_VHDR MAKE_ID('V','H','D','R')
  61. #define ID_BODY MAKE_ID('B','O','D','Y')
  62.  
  63. /*****************************************************************************/
  64.  
  65. #endif    /* DATATYPES_SOUNDCLASS_H */
  66.