1
0
Fork 0

Move the soundmanager update code back to the main loop, just prior to updating all the SGSubsystems. Hopefuly this silves the sound problem.

This commit is contained in:
ehofman 2008-09-05 09:18:33 +00:00
parent 64d20b741d
commit a6f885b1fb
2 changed files with 5 additions and 0 deletions

View 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);
//

View 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