From ebc9e71916bc71872a783867f9bfb0daed22f02d Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 3 Mar 2006 19:43:41 +0000 Subject: [PATCH] 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). --- src/Sound/voice.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Sound/voice.cxx b/src/Sound/voice.cxx index 8e317d05c..ae23ae88b 100644 --- a/src/Sound/voice.cxx +++ b/src/Sound/voice.cxx @@ -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; } -- 2.39.5