home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 110 / af110sub.adf / DTConvert.lzx / DTConvert / convert.h < prev    next >
C/C++ Source or Header  |  1978-01-18  |  2KB  |  61 lines

  1.  
  2. #ifndef CONVERT_H
  3. #define CONVERT_H 1
  4. /*
  5. **
  6. **  $VER: convert.h 1.4 (23.6.97)
  7. **  datatypes.library/Examples/DTConvert
  8. **
  9. **  Converts file into another format using datatypes
  10. **
  11. **  header for converter routines
  12. **
  13. **  Written 1996/97 by Roland 'Gizzy' Mainz
  14. **
  15. */
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif /* !EXEC_TYPES_H */
  20.  
  21. /*****************************************************************************/
  22. /* sound.datatype defines */
  23.  
  24. typedef UBYTE SAMPLE8;  /*  8 bit sample data */
  25. typedef UWORD SAMPLE16; /* 16 bit sample data */
  26.  
  27. /* Used in struct VoiceHeader... */
  28. #define VOLUME_UNITY (0x10000UL) /* Unity = Fixed 1.0 = maximum volume */
  29.  
  30. #ifdef SOUNDDATATYPE_V41_SUPPORT
  31.  
  32. /* Source object for writesoundclass (see ConvertSound below) */
  33. #define WRITESOUNDA_SourceObject (DTA_UserData)
  34.  
  35. #endif /* SOUNDDATATYPE_V41_SUPPORT */
  36.  
  37. /*****************************************************************************/
  38. /* picture.datatype (/animation.datatype) defines */
  39.  
  40. /* from <iffp/ilbm.h>*/
  41. /* BMHD flags */
  42.  
  43. /* Advisory that 8 significant bits-per-gun have been stored in CMAP
  44.  * i.e. that the CMAP is definitely not 4-bit values shifted left.
  45.  * This bit will disable nibble examination by color loading routine.
  46.  */
  47. #define BMHDB_CMAPOK (7U)
  48. #define BMHDF_CMAPOK (1U << BMHDB_CMAPOK)
  49.  
  50. /*****************************************************************************/
  51. /* animation.datatype defines */
  52.  
  53. /* Source object for writeanimclass (see ConvertAnimation below) */
  54. #define WRITEANIMA_SourceObject (DTA_UserData)
  55.  
  56. /*****************************************************************************/
  57.  
  58. #endif /* !CONVERT_H */
  59.  
  60.  
  61.