From ccb8cea91ee1537e24070dbd3cc568e6f24ddb28 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 29 Jun 2009 18:12:04 -0500 Subject: [PATCH] stop speech before clearing the queue Thanks to Kirk Reiser for pointing out that this makes the cancel response faster. --- synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synth.c b/synth.c index d34ad64..80749ff 100644 --- a/synth.c +++ b/synth.c @@ -267,8 +267,8 @@ void *espeak_thread(void *arg) pthread_cond_wait(&runner_awake, &queue_guard); if (runner_must_stop) { - synth_queue_clear(); stop_speech(); + synth_queue_clear(); runner_must_stop = 0; pthread_cond_signal(&stop_acknowledged); }