File: es.h

package info (click to toggle)
eflite 0.4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 348 kB
  • ctags: 204
  • sloc: ansic: 1,923; makefile: 51
file content (46 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "language.h"

#define NPARAMS 3

typedef struct client CLIENT;
struct client
{
  int fd;
  int param[NPARAMS];
  char punct[256];
};

typedef struct setting setting;
struct setting
{
  char *name;
  char *value;
  setting *next;
};

/* es.c */
void terror(const char *s);
#define LOG_STDERR 0x10000
#ifdef DEBUG
void es_log(int flags, const char *text, ...);
#else
#define es_log(...)
#endif

#ifdef EFLITE
#include "flite.h"
/* fs.c */
void add_tone_command(struct synth_struct *s, int freq, int dur, int vol);
#endif

/* soccon.c */
int sockconnect(const char *fname);

/* sockopen.c */
int sockopen(const char *fname);

/* tone.c */
void do_tone(struct synth_struct *s, int freq, int dur, int vol, int flags);
#ifdef EFLITE
cst_wave *generate_tone(int freq, int dur, int vol);
#endif