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:
parent
813c518e07
commit
ebc9e71916
1 changed files with 4 additions and 3 deletions
|
@ -118,9 +118,10 @@ FGVoiceMgr::FGVoice::FGVoice(FGVoiceMgr *mgr, const SGPropertyNode_ptr node) :
|
||||||
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') {
|
||||||
SG_LOG(SG_IO, SG_ALERT, "VOICE: something is listening to "
|
SG_LOG(SG_IO, SG_ALERT, "VOICE: unexpected or no response from `"
|
||||||
<< host << ':' << port << "', but it doesn't seem "
|
<< host << ':' << port << "'. Either it's not " << endl
|
||||||
"to be Festival");
|
<< " Festival listening, or Festival couldn't open a "
|
||||||
|
"sound device.");
|
||||||
_connected = false;
|
_connected = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue