home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 106 / af106sub.adf / datatypes.LZX / 16sv_datatype / classdata.h < prev    next >
C/C++ Source or Header  |  1992-02-25  |  2KB  |  97 lines

  1.  
  2.  
  3. #ifndef CLASSDATA_H
  4. #define CLASSDATA_H 1
  5.  
  6. /*
  7. **
  8. **  $VER: classdata.h 1.1 (5.10.97)
  9. **  16sv.datatype 1.1
  10. **
  11. **  16sv class data
  12. **
  13. **  Written 1996/97 by Roland 'Gizzy' Mainz
  14. **  Original example source from David N. Junod
  15. **
  16. */
  17.  
  18. /* amiga includes */
  19. #ifndef EXEC_TYPES_H
  20. #include <exec/types.h>
  21. #endif /* !EXEC_TYPES_H */
  22.  
  23. /* ansi includes */
  24. #include <limits.h>
  25.  
  26. /*****************************************************************************/
  27.  
  28. /* public BOOPSI class name */
  29. #define IFF16SVDTCLASS "16sv.datatype"
  30.  
  31. /*****************************************************************************/
  32.  
  33. /* 16SV IFF defines and macros: */
  34.  
  35. /* Generic IFF Chunk ID's we may encounter */
  36. #ifndef ID_ANNO
  37. #define ID_ANNO         MAKE_ID( 'A', 'N', 'N', 'O' )
  38. #endif /* !ID_ANNO */
  39.  
  40. #ifndef ID_AUTH
  41. #define ID_AUTH         MAKE_ID( 'A', 'U', 'T', 'H' )
  42. #endif /* !ID_AUTH */
  43.  
  44. #ifndef ID_Copyright
  45. #define ID_Copyright    MAKE_ID( '(', 'c', ')', ' ' )
  46. #endif /* !ID_Copyright */
  47.  
  48. #ifndef ID_FVER
  49. #define ID_FVER         MAKE_ID( 'F', 'V', 'E', 'R' )
  50. #endif /* !ID_FVER */
  51.  
  52. #ifndef ID_NAME
  53. #define ID_NAME         MAKE_ID( 'N', 'A', 'M', 'E' )
  54. #endif /* !ID_NAME */
  55.  
  56. /* IFF 16SV identifers */
  57. #ifndef ID_16SV
  58. #define ID_16SV         MAKE_ID( '1', '6', 'S', 'V' )
  59. #endif /* !ID_16SV */
  60.  
  61. /* IFF 8SVX/16SV VoiceHeader (defined in <datatypes/soundclass.h>) */
  62. #ifndef ID_VHDR
  63. #define ID_VHDR         MAKE_ID( 'V', 'H', 'D', 'R' )
  64. #endif /* !ID_VHDR */
  65.  
  66. /* misc */
  67. #ifndef ID_BODY
  68. #define ID_BODY         MAKE_ID( 'B', 'O', 'D', 'Y' )
  69. #endif /* !ID_BODY */
  70.  
  71. /*****************************************************************************/
  72.  
  73. #ifdef COMMENTED_OUT
  74.  
  75. /* 16sv.datatype instance data */
  76. struct 16SVInstData
  77. {
  78. };
  79.  
  80. #endif /* COMMENTED_OUT */
  81.  
  82. typedef UBYTE SAMPLE8;  /*  8 bit sample data */
  83. typedef UWORD SAMPLE16; /* 16 bit sample data */
  84.  
  85. #define SAMPLE8_MAX  (UCHAR_MAX)
  86. #define SAMPLE16_MAX (USHRT_MAX)
  87.  
  88. /* struct VoiceHeader volume field */
  89. #define VOLUME_UNITY (0x10000UL) /* Unity = Fixed 1.0 = maximum volume */
  90.  
  91. /*****************************************************************************/
  92.  
  93. #endif /* !CLASSDATA_H */
  94.  
  95.  
  96.  
  97.