main.cxx - small tweak to sound updating logic.
options.cxx - change property name /sim/sound/audible to /sim/sound/pause
This commit is contained in:
parent
ec8c167a27
commit
2fce07a4ce
2 changed files with 4 additions and 6 deletions
src/Main
|
@ -1216,9 +1216,7 @@ static void fgMainLoop( void ) {
|
||||||
|
|
||||||
// Run audio scheduler
|
// Run audio scheduler
|
||||||
#ifdef ENABLE_AUDIO_SUPPORT
|
#ifdef ENABLE_AUDIO_SUPPORT
|
||||||
if ( fgGetBool("/sim/sound/audible")
|
if ( globals->get_soundmgr()->is_working() ) {
|
||||||
&& globals->get_soundmgr()->is_working() )
|
|
||||||
{
|
|
||||||
globals->get_soundmgr()->update( delta_time_sec );
|
globals->get_soundmgr()->update( delta_time_sec );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -184,7 +184,7 @@ fgSetDefaults ()
|
||||||
fgSetBool("/sim/hud/enable3d", true);
|
fgSetBool("/sim/hud/enable3d", true);
|
||||||
fgSetBool("/sim/hud/visibility", false);
|
fgSetBool("/sim/hud/visibility", false);
|
||||||
fgSetBool("/sim/panel/visibility", true);
|
fgSetBool("/sim/panel/visibility", true);
|
||||||
fgSetBool("/sim/sound/audible", true);
|
fgSetBool("/sim/sound/pause", false);
|
||||||
|
|
||||||
// Flight Model options
|
// Flight Model options
|
||||||
fgSetString("/sim/flight-model", "jsb");
|
fgSetString("/sim/flight-model", "jsb");
|
||||||
|
@ -1204,8 +1204,8 @@ struct OptionDesc {
|
||||||
{"enable-hud", false, OPTION_BOOL, "/sim/hud/visibility", true, "", 0 },
|
{"enable-hud", false, OPTION_BOOL, "/sim/hud/visibility", true, "", 0 },
|
||||||
{"disable-panel", false, OPTION_BOOL, "/sim/panel/visibility", false, "", 0 },
|
{"disable-panel", false, OPTION_BOOL, "/sim/panel/visibility", false, "", 0 },
|
||||||
{"enable-panel", false, OPTION_BOOL, "/sim/panel/visibility", true, "", 0 },
|
{"enable-panel", false, OPTION_BOOL, "/sim/panel/visibility", true, "", 0 },
|
||||||
{"disable-sound", false, OPTION_BOOL, "/sim/sound/audible", false, "", 0 },
|
{"disable-sound", false, OPTION_BOOL, "/sim/sound/pause", true, "", 0 },
|
||||||
{"enable-sound", false, OPTION_BOOL, "/sim/sound/audible", true, "", 0 },
|
{"enable-sound", false, OPTION_BOOL, "/sim/sound/pause", false, "", 0 },
|
||||||
{"airport", true, OPTION_STRING, "/sim/presets/airport-id", false, "", 0 },
|
{"airport", true, OPTION_STRING, "/sim/presets/airport-id", false, "", 0 },
|
||||||
{"airport-id", 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 },
|
{"runway", true, OPTION_STRING, "/sim/presets/runway", false, "", 0 },
|
||||||
|
|
Loading…
Add table
Reference in a new issue