1
0
Fork 0

commradio: no spoken atis if sound disabled

This commit is contained in:
Torsten Dreyer 2014-04-30 10:50:57 +02:00
parent 88e5dc873f
commit 46584bfc92

View file

@ -64,6 +64,7 @@ public:
{
return _spokenAtis.empty() == false;
}
SGSharedPtr<SGSoundSample> getSpokenAtis()
{
return _spokenAtis.pop();
@ -84,6 +85,9 @@ AtisSpeaker::~AtisSpeaker()
}
void AtisSpeaker::valueChanged(SGPropertyNode * node)
{
if( !fgGetBool("/sim/sound/working", false ) )
return;
string newText = node->getStringValue();
if (_synthesizeRequest.text == newText) return;