From: curt Date: Fri, 14 May 2004 15:50:28 +0000 (+0000) Subject: main.cxx - small tweak to sound updating logic. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2fce07a4cee942485a96fe4e91ffcd5e7a6fb3a5;p=flightgear.git main.cxx - small tweak to sound updating logic. options.cxx - change property name /sim/sound/audible to /sim/sound/pause --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index f3f2191cb..809ae0a32 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1216,9 +1216,7 @@ static void fgMainLoop( void ) { // Run audio scheduler #ifdef ENABLE_AUDIO_SUPPORT - if ( fgGetBool("/sim/sound/audible") - && globals->get_soundmgr()->is_working() ) - { + if ( globals->get_soundmgr()->is_working() ) { globals->get_soundmgr()->update( delta_time_sec ); } #endif diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 0e19d6ee3..8a85e80dd 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -184,7 +184,7 @@ fgSetDefaults () fgSetBool("/sim/hud/enable3d", true); fgSetBool("/sim/hud/visibility", false); fgSetBool("/sim/panel/visibility", true); - fgSetBool("/sim/sound/audible", true); + fgSetBool("/sim/sound/pause", false); // Flight Model options fgSetString("/sim/flight-model", "jsb"); @@ -1204,8 +1204,8 @@ struct OptionDesc { {"enable-hud", false, OPTION_BOOL, "/sim/hud/visibility", true, "", 0 }, {"disable-panel", false, OPTION_BOOL, "/sim/panel/visibility", false, "", 0 }, {"enable-panel", false, OPTION_BOOL, "/sim/panel/visibility", true, "", 0 }, - {"disable-sound", false, OPTION_BOOL, "/sim/sound/audible", false, "", 0 }, - {"enable-sound", false, OPTION_BOOL, "/sim/sound/audible", true, "", 0 }, + {"disable-sound", false, OPTION_BOOL, "/sim/sound/pause", true, "", 0 }, + {"enable-sound", false, OPTION_BOOL, "/sim/sound/pause", false, "", 0 }, {"airport", true, OPTION_STRING, "/sim/presets/airport-id", false, "", 0 }, {"airport-id", true, OPTION_STRING, "/sim/presets/airport-id", false, "", 0 }, {"runway", true, OPTION_STRING, "/sim/presets/runway", false, "", 0 },