_enabled->setBoolValue(fgGetBool("/sim/sound/effects/enabled"));
_volume = _props->getNode("/sim/sound/aimodels/volume", true);
_volume->setFloatValue(fgGetFloat("/sim/sound/effects/volume"));
-_volume->setFloatValue(0.1f);
}
_avionics_enabled = _props->getNode("sim/sound/avionics/enabled", true);
}
SGPath path = globals->resolve_aircraft_path(path_str);
+ if (path.isNull())
+ {
+ SG_LOG(SG_SOUND, SG_ALERT,
+ "File not found: '" << path_str);
+ return;
+ }
SG_LOG(SG_SOUND, SG_INFO, "Reading sound " << node->getName()
<< " from " << path.str());
}
node = root.getNode("fx");
- if(node && !_is_aimodel) {
+ if(node) {
for (int i = 0; i < node->nChildren(); ++i) {
SGXmlSound *soundfx = new SGXmlSound();