1
0
Fork 0

Use the property /sim/sound/voice to disable voice support even if

/sim/sound/audible is true.
This commit is contained in:
david 2003-02-06 16:17:03 +00:00
parent 9b7405304d
commit 2a388d796e

View 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);