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:
parent
64d20b741d
commit
a6f885b1fb
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
//
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue