]> git.mxchange.org Git - flightgear.git/commitdiff
explicitly activate the sound manager
authorehofman <ehofman>
Sun, 18 Oct 2009 13:45:01 +0000 (13:45 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 18 Oct 2009 16:19:52 +0000 (18:19 +0200)
src/Main/main.cxx

index 91e1542dbe3a323eb307d0ffcd0f2505e018c5be..30741f1c1794f5887153ec6cfba2f8a7a59f989d 100644 (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
     }