2 #include <linux/types.h>
3 #include <linux/wait.h>
8 #define synthBufferSize 8192
11 static u_char *buff_in = synth_buffer;
12 static u_char *buff_out = synth_buffer;
36 static void speakup_stop_ttys(
void)
45 static int synth_buffer_free(
void)
49 if (buff_in >= buff_out)
52 bytesFree = buff_out - buff_in;
58 return (buff_in == buff_out);
69 if (synth_buffer_free() <= 100) {
73 if (synth_buffer_free() <= 1)
76 if (buff_in > buffer_end)
77 buff_in = synth_buffer;
84 if (buff_out == buff_in)
87 if (buff_out > buffer_end)
88 buff_out = synth_buffer;
95 if (buff_out == buff_in)
103 buff_in = buff_out = synth_buffer;