commradio: no spoken atis if sound disabled
This commit is contained in:
parent
88e5dc873f
commit
46584bfc92
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue