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:
parent
f5eadf2e37
commit
34d4462327
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue