更新 'src/Sound/voice.cxx'

This commit is contained in:
zhongjin 2022-11-28 11:00:48 +08:00
parent 6953038f63
commit 6bda97e9a5

View File

@ -127,9 +127,6 @@ void FGVoiceMgr::shutdown()
void FGVoiceMgr::update(double dt)
{
SG_LOG(SG_SOUND, SG_INFO, "FGVoice::update " << dt );
if (!_enabled)
return;
@ -221,6 +218,7 @@ bool FGVoiceMgr::FGVoice::speak(void)
const string s = _msg.front();
_msg.pop();
//zhongjin 播放语音
speak(s);
return !_msg.empty();