From 73d4b78396064439237135d5d4b3b8e793cb5e4e Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 18 Oct 2009 13:45:01 +0000 Subject: [PATCH] explicitly activate the sound manager --- src/Main/main.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 }