- _mgr = sndmgr;
- if ( (_sample = _mgr->find(_name)) == NULL ) {
- _sample = new SGSoundSample( path.c_str(),
- node->getStringValue("path", "") );
- _mgr->add( _sample, _name );
+ // Orientation
+ //
+ SGVec3d dir = SGVec3d::zeros();
+ float inner = 360.0;
+ float outer = 360.0;
+ float outer_gain = 0.0;;
+ prop = node->getChild("orientation");
+ if ( prop != NULL ) {
+ dir = SGVec3d(-prop->getDoubleValue("x", 0.0),
+ -prop->getDoubleValue("y", 0.0),
+ -prop->getDoubleValue("z", 0.0));
+ inner = prop->getDoubleValue("inner-angle", 360.0);
+ outer = prop->getDoubleValue("outer-angle", 360.0);
+ outer_gain = prop->getDoubleValue("outer-gain", 0.0);