From: ehofman Date: Sun, 18 Oct 2009 13:45:01 +0000 (+0000) Subject: explicitly activate the sound manager X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=73d4b78396064439237135d5d4b3b8e793cb5e4e;p=flightgear.git explicitly activate the sound manager --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 91e1542db..30741f1c1 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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 }