- // The rotation rotating from the earth centerd frame to
- // the horizontal local frame
- SGQuatd hlOr = SGQuatd::fromLonLat( _position_geod );
-
- // Compute the listeners orientation and position
- // wrt the earth centered frame - that is global coorinates
- SGQuatd lc2body = hlOr*_orientation;
-
- // cartesian position of the listener
- SGVec3d position = SGVec3d::fromGeod( _position_geod );
-
- // This is rotates the x-forward, y-right, z-down coordinate system where
- // simulation runs into the OpenGL camera system with x-right, y-up, z-back.
- SGQuatd q(-0.5, -0.5, 0.5, 0.5);
-
- _absolute_pos = position;
-#if 0
- if (_position_offs[0] || _position_offs[1] || _position_offs[2] ) {
- _absolute_pos += (lc2body*q).backTransform( _position_offs );
- }
-#endif
-