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()) {
fgSetBool("sim/sceneryloaded",true);
#ifdef ENABLE_AUDIO_SUPPORT
if (fgGetBool("/sim/sound/enabled") == false)
smgr->stop();
else
if (fgGetBool("/sim/sound/enabled") == true) {
smgr->set_volume(fgGetFloat("/sim/sound/volume"));
smgr->activate();
}
else
smgr->stop();
#endif
}