From 46584bfc9289c1d5b7e03156b88a95d31ccf62b5 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 30 Apr 2014 10:50:57 +0200 Subject: [PATCH] commradio: no spoken atis if sound disabled --- src/Instrumentation/commradio.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Instrumentation/commradio.cxx b/src/Instrumentation/commradio.cxx index 20114289b..bff1b85a2 100644 --- a/src/Instrumentation/commradio.cxx +++ b/src/Instrumentation/commradio.cxx @@ -64,6 +64,7 @@ public: { return _spokenAtis.empty() == false; } + SGSharedPtr 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;