From 6a7b8858918e90842ecce5d59026a20364799345 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 22 Oct 2009 12:10:35 +0000 Subject: [PATCH] revert some test code --- simgear/sound/sample_openal.cxx | 5 +++-- simgear/sound/xmlsound.cxx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/simgear/sound/sample_openal.cxx b/simgear/sound/sample_openal.cxx index c5ced562..2ec3c96d 100644 --- a/simgear/sound/sample_openal.cxx +++ b/simgear/sound/sample_openal.cxx @@ -182,8 +182,9 @@ void SGSoundSample::set_position( const SGGeod& pos ) { void SGSoundSample::update_absolute_position() { SGQuatd orient = SGQuatd::fromLonLat(_base_pos) * _orientation; - _orivec = -toVec3f(orient.rotate(_direction)); -//printf("ori: %f %f %f\n", _orivec[0], _orivec[1], _orivec[2]); + _orivec = -toVec3f(orient.rotate(-SGVec3d::e1())); +printf("ori: %f %f %f\n", _orivec[0], _orivec[1], _orivec[2]); +printf("vel: %f %f %f\n", _velocity[0], _velocity[1], _velocity[2]); orient = SGQuatd::fromRealImag(0, _relative_pos) * _orientation; _absolute_pos = -SGVec3d::fromGeod(_base_pos); // -orient.rotate(SGVec3d::e1()); diff --git a/simgear/sound/xmlsound.cxx b/simgear/sound/xmlsound.cxx index 54f3e4b1..39cfdfe0 100644 --- a/simgear/sound/xmlsound.cxx +++ b/simgear/sound/xmlsound.cxx @@ -171,7 +171,7 @@ SGXmlSound::init(SGPropertyNode *root, SGPropertyNode *node, } - float reference_dist = node->getDoubleValue("reference-dist", 50.0); + float reference_dist = node->getDoubleValue("reference-dist", 500.0); float max_dist = node->getDoubleValue("max-dist", 3000.0); // @@ -243,7 +243,7 @@ SGXmlSound::init(SGPropertyNode *root, SGPropertyNode *node, SGVec3d dir = SGVec3d::zeros(); float inner = 360.0; float outer = 360.0; - float outer_gain = 0.0;; + float outer_gain = 0.0; prop = node->getChild("orientation"); if ( prop != NULL ) { dir = SGVec3d(-prop->getDoubleValue("x", 0.0), -- 2.39.5