Use the property /sim/sound/voice to disable voice support even if
/sim/sound/audible is true.
This commit is contained in:
parent
9b7405304d
commit
2a388d796e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue