home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / devices / narrator.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  2.2 KB  |  142 lines

  1. #ifndef DEVICES_NARRATOR_H
  2. #define DEVICES_NARRATOR_H
  3. /*
  4. ** $Filename: devices/narrator.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 1.7 $
  7. ** $Date: 91/03/12 $
  8. **
  9. ** V37 Narrator device C language include file
  10. **
  11. ** Copyright 1990, 1991 Joseph Katz/Mark Barton.
  12. ** All rights reserved.
  13. **
  14. ** This include file (narrator.h) may be freely distributed
  15. ** as long as the above copyright notice remains intact.
  16. **
  17. */
  18.  
  19.  
  20. #ifndef EXEC_IO_H
  21. #include "exec/io.h"
  22. #endif
  23.  
  24.  
  25.  
  26.  
  27. #define NDB_NEWIORB 0 
  28. #define NDB_WORDSYNC 1 
  29. #define NDB_SYLSYNC 2 
  30.  
  31.  
  32. #define NDF_NEWIORB (1 << NDB_NEWIORB)
  33. #define NDF_WORDSYNC (1 << NDB_WORDSYNC)
  34. #define NDF_SYLSYNC (1 << NDB_SYLSYNC)
  35.  
  36.  
  37.  
  38.  
  39.  
  40. #define ND_NoMem -2 
  41. #define ND_NoAudLib -3 
  42. #define ND_MakeBad -4 
  43. #define ND_UnitErr -5 
  44. #define ND_CantAlloc -6 
  45. #define ND_Unimpl -7 
  46. #define ND_NoWrite -8 
  47. #define ND_Expunged -9 
  48. #define ND_PhonErr -20 
  49. #define ND_RateErr -21 
  50. #define ND_PitchErr -22 
  51. #define ND_SexErr -23 
  52. #define ND_ModeErr -24 
  53. #define ND_FreqErr -25 
  54. #define ND_VolErr -26 
  55. #define ND_DCentErr -27 
  56. #define ND_CentPhonErr -28 
  57.  
  58.  
  59.  
  60.  
  61.  
  62. #define DEFPITCH 110 
  63. #define DEFRATE 150 
  64. #define DEFVOL 64 
  65. #define DEFFREQ 22200 
  66. #define MALE 0 
  67. #define FEMALE 1 
  68. #define NATURALF0 0 
  69. #define ROBOTICF0 1 
  70. #define MANUALF0 2 
  71. #define DEFSEX MALE 
  72. #define DEFMODE NATURALF0 
  73. #define DEFARTIC 100 
  74. #define DEFCENTRAL 0 
  75. #define DEFF0PERT 0 
  76. #define DEFF0ENTHUS 32 
  77. #define DEFPRIORITY 100 
  78.  
  79.  
  80.  
  81.  
  82. #define MINRATE 40 
  83. #define MAXRATE 400 
  84. #define MINPITCH 65 
  85. #define MAXPITCH 320 
  86. #define MINFREQ 5000 
  87. #define MAXFREQ 28000 
  88. #define MINVOL 0 
  89. #define MAXVOL 64 
  90. #define MINCENT 0 
  91. #define MAXCENT 100 
  92.  
  93.  
  94.  
  95.  
  96. struct narrator_rb {
  97.  struct IOStdReq message; 
  98.  UWORD rate; 
  99.  UWORD pitch; 
  100.  UWORD mode; 
  101.  UWORD sex; 
  102.  UBYTE *ch_masks; 
  103.  UWORD nm_masks; 
  104.  UWORD volume; 
  105.  UWORD sampfreq; 
  106.  UBYTE mouths; 
  107.  UBYTE chanmask; 
  108.  UBYTE numchan; 
  109.  UBYTE flags; 
  110.  UBYTE F0enthusiasm; 
  111.  UBYTE F0perturb; 
  112.  BYTE F1adj; 
  113.  BYTE F2adj; 
  114.  BYTE F3adj; 
  115.  BYTE A1adj; 
  116.  BYTE A2adj; 
  117.  BYTE A3adj; 
  118.  UBYTE articulate; 
  119.  UBYTE centralize; 
  120.  char *centphon; 
  121.  BYTE AVbias; 
  122.  BYTE AFbias; 
  123.  BYTE priority; 
  124.  BYTE pad1; 
  125.  };
  126.  
  127.  
  128.  
  129.  
  130.  
  131. struct mouth_rb {
  132.  struct narrator_rb voice; 
  133.  UBYTE width; 
  134.  UBYTE height; 
  135.  UBYTE shape; 
  136.  UBYTE sync; 
  137.  };
  138.  
  139.  
  140.  
  141. #endif 
  142.