]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_init.cxx
Fix shared library build for metar executable
[flightgear.git] / src / Main / fg_init.cxx
index 8d01e88e66fd7588044e0be827eead47eaf0deb8..807606916fe2dfd61e2b8ef942d0398ce8a5c909 100644 (file)
@@ -1181,6 +1181,15 @@ bool fgInitSubsystems() {
     SG_LOG( SG_GENERAL, SG_INFO, "Initialize Subsystems");
     SG_LOG( SG_GENERAL, SG_INFO, "========== ==========");
 
+    ////////////////////////////////////////////////////////////////////
+    // Initialize the sound subsystem.
+    ////////////////////////////////////////////////////////////////////
+    // Sound manager uses an own subsystem group "SOUND" which is the last
+    // to be updated in every loop.
+    // Sound manager is updated last so it can use the CPU while the GPU
+    // is processing the scenery (doubled the frame-rate for me) -EMH-
+    globals->add_subsystem("sound", new SGSoundMgr, SGSubsystemMgr::SOUND);
+
     ////////////////////////////////////////////////////////////////////
     // Initialize the event manager subsystem.
     ////////////////////////////////////////////////////////////////////