From d31157986707c2cd1ab08022346a0a1c5006f5c5 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 28 Nov 2022 08:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Sound/voice.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Sound/voice.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Sound/voice.cxx b/src/Sound/voice.cxx index 6489d24..9dca4c1 100644 --- a/src/Sound/voice.cxx +++ b/src/Sound/voice.cxx @@ -86,6 +86,8 @@ void FGVoiceMgr::init() SGPropertyNode *base = fgGetNode(VOICE, true); vector voices = base->getChildren("voice"); + + for (unsigned int i = 0; i < voices.size(); i++) { SGPropertyNode_ptr voice = voices[i]; if( voice->getBoolValue("festival", false ) ) { @@ -207,6 +209,9 @@ bool FGVoiceMgr::FGVoice::speak(void) if (_msg.empty()) return false; + SG_LOG(SG_SOUND, SG_INFO, "FGVoice::speak " << _msg ); + + const string s = _msg.front(); _msg.pop();