1
0
Fork 0

Fix Festival support in FGVoice

Send a real (Lisp) command to check if Festival is running, instead
of SayText. Antonello (RedGriffin) reports this works better.
This commit is contained in:
James Turner 2021-01-04 10:29:20 +00:00
parent f5eadf2e37
commit 34d4462327

View file

@ -161,7 +161,7 @@ FGFestivalVoice::FGFestivalVoice(FGVoiceMgr *mgr, const SGPropertyNode_ptr node)
throw string("no connection to `") + host + ':' + port + '\''; throw string("no connection to `") + host + ':' + port + '\'';
{ {
_sock->writestring("(SayText \"\")\015\012"); _sock->writestring("(+ 1 2)\015\012");
char buf[4]; char buf[4];
int len = _sock->read(buf, 3); int len = _sock->read(buf, 3);
if (len != 3 || buf[0] != 'L' || buf[1] != 'P') if (len != 3 || buf[0] != 'L' || buf[1] != 'P')