Browse Source

Always flush stdout when reading stdin line by line.

master
Reece H. Dunn 6 years ago
parent
commit
9638750579
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/espeak-ng.c

+ 2
- 0
src/espeak-ng.c View File

@@ -691,6 +691,8 @@ int main(int argc, char **argv)
while (fgets(p_text, max, f_text) != NULL) {
p_text[max-1] = 0;
espeak_Synth(p_text, max, 0, POS_CHARACTER, 0, synth_flags, NULL, NULL);
// Allow subprocesses to use the audio data through pipes.
fflush(stdout);
}
if (f_text != stdin) {
fclose(f_text);

Loading…
Cancel
Save