From 1e3100809115596922c1e22a6f99f188117fd9f2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 18 Aug 2019 20:29:55 +0200 Subject: [PATCH] pass '\n' to espeak too for e.g. proper pause --- softsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softsynth.c b/softsynth.c index ca9c5c3..fffef44 100644 --- a/softsynth.c +++ b/softsynth.c @@ -171,7 +171,7 @@ static void process_buffer(struct synth_t *s, char *buf, ssize_t length) start = 0; end = 0; while (start < length) { - while ((buf[end] < 0 || buf[end] >= ' ') && end < length) + while ((buf[end] < 0 || buf[end] >= ' ' || buf[end] == '\n') && end < length) end++; if (end != start) { txtLen = end - start;