]> git.mxchange.org Git - flightgear.git/commitdiff
SoundManager fixes
authorehofman <ehofman>
Fri, 16 Oct 2009 09:45:54 +0000 (09:45 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 17 Oct 2009 12:02:46 +0000 (14:02 +0200)
src/Model/acmodel.cxx
src/Sound/fg_fx.cxx
src/Sound/sample_queue.cxx

index b4fda2e871dffb01587a154c84dbbf84669696a0..318b082e9a3b064dc066f381ec7583c38fce4d88 100644 (file)
@@ -128,8 +128,8 @@ FGAircraftModel::update (double dt)
   _fx->set_position( _aircraft->getPosition() );
 
   SGQuatd orient = SGQuatd::fromYawPitchRollDeg(_heading->getDoubleValue(),
-                                                  _pitch->getDoubleValue(),
-                                                  _roll->getDoubleValue());
+                                                _pitch->getDoubleValue(),
+                                                _roll->getDoubleValue());
   _fx->set_orientation( orient );
  
   _velocity = SGVec3d( -_speed_n->getDoubleValue(),
index 934ec5c1aa49baa21580d1a1205369423003c4b8..8bc493bfae15d61a230eb83b7fa6c874750e7543 100644 (file)
@@ -47,7 +47,6 @@ FGFX::FGFX ( SGSoundMgr *smgr, const string &refname ) :
     SGSampleGroup::_smgr = smgr;
     SGSampleGroup::_refname = refname;
     SGSampleGroup::_smgr->add(this, refname);
-    SGSampleGroup::_active = _smgr->is_working();
 }
 
 
index 30adf60dfb822d70f5b95d34193d3bd4a63db55b..d032a8d904b8f4b2aabf95daafcbf31a3b0c9f11 100644 (file)
@@ -44,7 +44,6 @@ FGSampleQueue::FGSampleQueue ( SGSoundMgr *smgr, const string &refname ) :
 {
     SGSampleGroup::_smgr = smgr;
     SGSampleGroup::_smgr->add(this, refname);
-    SGSampleGroup::_active = _smgr->is_working();
 }