#ifndef DEVICES_NARRATOR_H #define DEVICES_NARRATOR_H /* ** $Filename: devices/narrator.h $ ** $Release: 2.04 Includes, V37.4 $ ** $Revision: 1.7 $ ** $Date: 91/03/12 $ ** ** V37 Narrator device C language include file ** ** Copyright 1990, 1991 Joseph Katz/Mark Barton. ** All rights reserved. ** ** This include file (narrator.h) may be freely distributed ** as long as the above copyright notice remains intact. ** */ #ifndef EXEC_IO_H #include "exec/io.h" #endif #define NDB_NEWIORB 0 #define NDB_WORDSYNC 1 #define NDB_SYLSYNC 2 #define NDF_NEWIORB (1 << NDB_NEWIORB) #define NDF_WORDSYNC (1 << NDB_WORDSYNC) #define NDF_SYLSYNC (1 << NDB_SYLSYNC) #define ND_NoMem -2 #define ND_NoAudLib -3 #define ND_MakeBad -4 #define ND_UnitErr -5 #define ND_CantAlloc -6 #define ND_Unimpl -7 #define ND_NoWrite -8 #define ND_Expunged -9 #define ND_PhonErr -20 #define ND_RateErr -21 #define ND_PitchErr -22 #define ND_SexErr -23 #define ND_ModeErr -24 #define ND_FreqErr -25 #define ND_VolErr -26 #define ND_DCentErr -27 #define ND_CentPhonErr -28 #define DEFPITCH 110 #define DEFRATE 150 #define DEFVOL 64 #define DEFFREQ 22200 #define MALE 0 #define FEMALE 1 #define NATURALF0 0 #define ROBOTICF0 1 #define MANUALF0 2 #define DEFSEX MALE #define DEFMODE NATURALF0 #define DEFARTIC 100 #define DEFCENTRAL 0 #define DEFF0PERT 0 #define DEFF0ENTHUS 32 #define DEFPRIORITY 100 #define MINRATE 40 #define MAXRATE 400 #define MINPITCH 65 #define MAXPITCH 320 #define MINFREQ 5000 #define MAXFREQ 28000 #define MINVOL 0 #define MAXVOL 64 #define MINCENT 0 #define MAXCENT 100 struct narrator_rb { struct IOStdReq message; UWORD rate; UWORD pitch; UWORD mode; UWORD sex; UBYTE *ch_masks; UWORD nm_masks; UWORD volume; UWORD sampfreq; UBYTE mouths; UBYTE chanmask; UBYTE numchan; UBYTE flags; UBYTE F0enthusiasm; UBYTE F0perturb; BYTE F1adj; BYTE F2adj; BYTE F3adj; BYTE A1adj; BYTE A2adj; BYTE A3adj; UBYTE articulate; UBYTE centralize; char *centphon; BYTE AVbias; BYTE AFbias; BYTE priority; BYTE pad1; }; struct mouth_rb { struct narrator_rb voice; UBYTE width; UBYTE height; UBYTE shape; UBYTE sync; }; #endif