Need to call inherited update to control volume and enable/disable
depending on sound ATC switch.
// call this from their own Update(...).
void FGATC::update(double dt) {
+ // TODO This doesn't really do anything specific to this instance.
+ // All FGATCs share the same "_sgr" sound group. So this really should
+ // only be done once for all FGATCs.
#ifdef ENABLE_AUDIO_SUPPORT
bool active = _atc_external->getBoolValue() ||
_internal->getBoolValue();
trans_ident(""),
old_volume(0),
atis_failed(false),
+ msg_time(0),
+ cur_time(0),
msg_OK(0),
_attention(false),
_prev_display(0),
_prev_display = false;
}
_attention = false;
+
+ FGATC::update(dt);
}
string uppercase(const string &s) {