- power_btn->setBoolValue( true );
- audio_btn->setBoolValue( true );
- serviceable->setBoolValue( true );
+ if (power_btn->getType() == simgear::props::NONE)
+ power_btn->setBoolValue( true );
+ if (audio_btn->getType() == simgear::props::NONE)
+ audio_btn->setBoolValue( true );
+ if (serviceable->getType() == simgear::props::NONE)
+ serviceable->setBoolValue( true );
+
+ SGSoundMgr *smgr = globals->get_soundmgr();
+ _sgr = smgr->find("avionics", true);
+ _sgr->tie_to_listener();