From 2eca970fc8ab39929ca9200338d7f85165ef06cc Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Wed, 3 Feb 2016 20:57:46 +0000 Subject: [PATCH] Remove the control 3-5 logic in SpeakNextClause as those values are not passed to the function. --- src/libespeak-ng/synthesize.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/libespeak-ng/synthesize.c b/src/libespeak-ng/synthesize.c index 5579bbae..ad4d417b 100644 --- a/src/libespeak-ng/synthesize.c +++ b/src/libespeak-ng/synthesize.c @@ -1563,9 +1563,6 @@ int SpeakNextClause(FILE *f_in, const void *text_in, int control) // The other calls have f_in and text_in = NULL // control 1: speak next text // 2: stop - // 3: pause (toggle) - // 4: is file being read (0=no, 1=yes) - // 5: interrupt and flush current text. int clause_tone; char *voice_change; @@ -1573,13 +1570,6 @@ int SpeakNextClause(FILE *f_in, const void *text_in, int control) static const void *p_text = NULL; const char *phon_out; - if (control == 4) { - if ((f_text == NULL) && (p_text == NULL)) - return 0; - else - return 1; - } - if (control == 2) { // stop speaking timer_on = 0; @@ -1594,27 +1584,6 @@ int SpeakNextClause(FILE *f_in, const void *text_in, int control) return 0; } - if (control == 3) { - // toggle pause - if (paused == 0) { - timer_on = 0; - paused = 2; - } else { - WavegenOpenSound(); - timer_on = 1; - paused = 0; - Generate(phoneme_list, &n_phoneme_list, 0); // re-start from beginning of clause - } - return 0; - } - - if (control == 5) { - // stop speaking, but continue looking for text - n_phoneme_list = 0; - WcmdqStop(); - return 0; - } - if ((f_in != NULL) || (text_in != NULL)) { f_text = f_in; p_text = text_in;