2
* brass - Braille and speech server
4
* Copyright (C) 2001 by Roger Butenuth, All rights reserved.
6
* This is free software, placed under the terms of the
7
* GNU General Public License, as published by the Free Software
8
* Foundation. Please see the file COPYING for details.
10
* $Id: synthesizer.h,v 1.1.1.1 2002/03/03 19:49:48 mgorse Exp $
20
* Language numbers. Do not change the ordering, some programs rely on
21
* this ordering because they index some statically initialized arrays
22
* with this language numbers.
24
#define LANG_BRITISH_ENGLISH 0
30
int lang; /* index (see defines above) */
31
char *name; /* descriptive name */
34
extern lang_descr_t languages[LANGUAGES];
37
S_SPEED, /* 1000 = normal */
38
S_PITCH, /* 1000 = normal */
39
S_VOLUME, /* 1000 = normal */
44
typedef struct synth_state *synth_state_p;
46
typedef struct synth_struct {
51
int (*close)(struct synth_struct *s);
52
int (*synth)(struct synth_struct *s, unsigned char *buffer);
53
int (*flush)(struct synth_struct *s);
54
int (*clear)(struct synth_struct *s);
55
int (*index_set)(struct synth_struct *s);
56
int (*index_wait)(struct synth_struct *s, int id, int timeout);
57
int (*get_param)(struct synth_struct *s, synth_par_t par, int *value);
58
int (*set_param)(struct synth_struct *s, synth_par_t par, int value);
61
synth_t *open_synthesizer(void *context, lookup_string_t lookup);
62
int close_synthesizer(synth_t *synth);
64
/* open function in one of the libraries */
65
synth_t *synth_open(void *context, lookup_string_t lookup);
67
#endif /* SYNTHESIZER_H */