]> git.mxchange.org Git - flightgear.git/commitdiff
Move the soundmanager update code back to the main loop, just prior to updating all...
authorehofman <ehofman>
Fri, 5 Sep 2008 09:18:33 +0000 (09:18 +0000)
committerehofman <ehofman>
Fri, 5 Sep 2008 09:18:33 +0000 (09:18 +0000)
src/Main/main.cxx
src/Sound/fg_fx.cxx

index 54d2bdbc74735aa043db4fd53c2af6c619e1b014..14debbd829ffdc7fd70859516b7c43fb683d7764 100644 (file)
@@ -481,6 +481,8 @@ static void fgMainLoop( void ) {
             "Elapsed time is zero ... we're zinging" );
     }
 
+    SGSoundMgr *smgr = globals->get_soundmgr();
+    smgr->update(delta_time_sec);
     globals->get_subsystem_mgr()->update(delta_time_sec);
 
     //
index ad9c4ed47ad35d57bef8976d1c19777a7bf4d0a1..6df4505d3fd8bbc8b921e7b50ab6a28d937409d8 100644 (file)
@@ -137,7 +137,10 @@ FGFX::update (double dt)
         return;
     }
 
+#if 0
+    // moved back to the mainloop to prevent audio problems
     smgr->update(dt);
+#endif
     update_pos_and_orientation(smgr, dt);
 
     // command sound manger