]> git.mxchange.org Git - flightgear.git/commitdiff
improve error message: if festival doesn't seem to be listening, then it's
authormfranz <mfranz>
Fri, 3 Mar 2006 19:43:41 +0000 (19:43 +0000)
committermfranz <mfranz>
Fri, 3 Mar 2006 19:43:41 +0000 (19:43 +0000)
probably blocked by not being able to open a sound device (because fgfs is
using the only available device already).

src/Sound/voice.cxx

index 8e317d05c91a6289ceb7680fc4afd8db0d5cfb6a..ae23ae88b7738cad042b0525d21eea406d0d57a4 100644 (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;
                }