William Hubbs
faab189389
Fixed the select call
...
The select call was moved to be in the if statement below it since the
return code is not needed after that statement is processed.
2008-10-05 16:12:37 -05:00
William Hubbs
24607b1cc8
made the synth flush character a constant for readability
2008-10-05 14:47:52 -05:00
William Hubbs
c8e2a35763
fixed an off-by-one error
...
The loop can start at length-1 since we know that the last character in
the buffer is a null.
Thanks again to Chris Brannon for finding this.
2008-10-04 12:43:40 -05:00
William Hubbs
5ddeb1e978
indentation fixes
2008-09-01 12:50:16 -05:00
William Hubbs
96a3b19850
fix flush processing
...
This removes flush processing from process_command() and fixes
the code in the main loop so that it does not ignore the 0 position
in the buffer.
2008-08-31 10:29:00 -05:00
William Hubbs
ebcbcac9d2
removed an extra assignment statement
2008-08-30 16:34:59 -05:00
William Hubbs
d2d763b36b
moved flush processing into main loop
...
This patch from Kirk Reiser attempts to increase
responsiveness by moving the flush processing into the main loop.
2008-08-30 15:02:26 -05:00
William Hubbs
564db7981e
put back the select code
...
This needed to be put back to keep espeakup from using 100% of the cpu.
2008-08-29 19:16:10 -05:00
William Hubbs
5005b9ddde
removed code that uses select
...
I was using the wrong type for the return value for read().
2008-08-17 18:32:05 -05:00
William Hubbs
498ce65db7
cleaned up process_command
2008-08-17 00:44:06 -05:00
William Hubbs
655894ee2a
added queueing support
...
I have added queueing support so that when we read from the softsynth we
can put the text and commands we have read into a queue. This will
allow us to retry calling espeak_synth() if we fill espeak's internal
buffer.
2008-08-16 19:48:40 -05:00
William Hubbs
86e93edeb0
removed softsynth code from main module
2008-08-15 22:34:49 -05:00
William Hubbs
029dd03251
modularize the code
...
This commit just re-arranges the source so that it is easier to work with.
2008-08-15 00:11:48 -05:00