1
0
Fork 0

improve error message: if festival doesn't seem to be listening, then it's

probably blocked by not being able to open a sound device (because fgfs is
using the only available device already).
This commit is contained in:
mfranz 2006-03-03 19:43:41 +00:00
parent 813c518e07
commit ebc9e71916

View file

@ -118,9 +118,10 @@ FGVoiceMgr::FGVoice::FGVoice(FGVoiceMgr *mgr, const SGPropertyNode_ptr node) :
char buf[4];
int len = _sock->read(buf, 3);
if (len != 3 || buf[0] != 'L' || buf[1] != 'P') {
SG_LOG(SG_IO, SG_ALERT, "VOICE: something is listening to "
<< host << ':' << port << "', but it doesn't seem "
"to be Festival");
SG_LOG(SG_IO, SG_ALERT, "VOICE: unexpected or no response from `"
<< host << ':' << port << "'. Either it's not " << endl
<< " Festival listening, or Festival couldn't open a "
"sound device.");
_connected = false;
return;
}