tests: build with klatt and speechplayer (#1557)

Ref: #1549
This commit is contained in:
Alexander Epaneshnikov
2022-11-23 21:11:49 +03:00
committed by GitHub
3 changed files with 13 additions and 1 deletions
+8
View File
@@ -290,6 +290,14 @@ src_libespeak_ng_test_la_CFLAGS = \
${PCAUDIOLIB_CFLAGS} ${AM_CFLAGS}
src_libespeak_ng_test_la_SOURCES = $(src_libespeak_ng_la_SOURCES)
if OPT_KLATT
src_libespeak_ng_test_la_CFLAGS += -DINCLUDE_KLATT
endif
if OPT_SPEECHPLAYER
src_libespeak_ng_test_la_CFLAGS += -DINCLUDE_SPEECHPLAYER
endif
check_PROGRAMS += tests/encoding.test
tests_encoding_test_LDADD = src/libespeak-ng.la
+3 -1
View File
@@ -98,7 +98,9 @@ void KlattInitSP() {
}
void KlattFiniSP() {
speechPlayer_terminate(speechPlayerHandle);
if (speechPlayerHandle)
speechPlayer_terminate(speechPlayerHandle);
speechPlayerHandle = NULL;
}
void KlattResetSP() {
+2
View File
@@ -945,6 +945,8 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Terminate(void)
p_decoder = NULL;
}
WavegenFini();
return ENS_OK;
}