]> git.mxchange.org Git - flightgear.git/commitdiff
Use the property /sim/sound/voice to disable voice support even if
authordavid <david>
Thu, 6 Feb 2003 16:17:03 +0000 (16:17 +0000)
committerdavid <david>
Thu, 6 Feb 2003 16:17:03 +0000 (16:17 +0000)
/sim/sound/audible is true.

src/ATC/ATCmgr.cxx

index 485565e9f981615d7e908184374e5c7385d4e2a8..064e0e3c1f37d6fc41c03e51a46594cba9999c8b 100644 (file)
@@ -393,7 +393,8 @@ FGATC* FGATCMgr::GetATCPointer(string icao, atc_type type) {
 // The repeating flag indicates whether the message should be repeated continuously or played once.
 void FGATCMgr::Render(string msg, string refname, bool repeating) {
 #ifdef ENABLE_AUDIO_SUPPORT
-       voice = voiceOK && fgGetBool("/sim/sound/audible");
+       voice = (voiceOK && fgGetBool("/sim/sound/audible")
+                 && fgGetBool("/sim/sound/voice"));
        if(voice) {
                int len;
                unsigned char* buf = v1.WriteMessage((char*)msg.c_str(), len, voice);