1
0
Fork 0

explicitly activate the sound manager

This commit is contained in:
ehofman 2009-10-18 13:45:01 +00:00 committed by Tim Moore
parent 78aa4be170
commit 73d4b78396

View file

@ -492,10 +492,12 @@ static void fgMainLoop( void ) {
&& cur_fdm_state->get_inited()) { && cur_fdm_state->get_inited()) {
fgSetBool("sim/sceneryloaded",true); fgSetBool("sim/sceneryloaded",true);
#ifdef ENABLE_AUDIO_SUPPORT #ifdef ENABLE_AUDIO_SUPPORT
if (fgGetBool("/sim/sound/enabled") == false) if (fgGetBool("/sim/sound/enabled") == true) {
smgr->stop();
else
smgr->set_volume(fgGetFloat("/sim/sound/volume")); smgr->set_volume(fgGetFloat("/sim/sound/volume"));
smgr->activate();
}
else
smgr->stop();
#endif #endif
} }