更新 'src/Sound/voice.cxx'

This commit is contained in:
zhongjin 2022-11-28 08:53:49 +08:00
parent 1bfe8465af
commit d311579867

View File

@ -86,6 +86,8 @@ void FGVoiceMgr::init()
SGPropertyNode *base = fgGetNode(VOICE, true);
vector<SGPropertyNode_ptr> 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();