diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index cf6c86b70..3d253091d 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -1453,7 +1453,7 @@ bool fgInitSubsystems() { //////////////////////////////////////////////////////////////////// globals->get_soundmgr()->bind(); - globals->get_soundmgr()->init(); + globals->get_soundmgr()->init(fgGetString("/sim/sound/device-name", NULL)); //////////////////////////////////////////////////////////////////// // Initialize the property interpolator subsystem. Put into the INIT diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 73ebf0627..2651965ff 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -1291,8 +1291,9 @@ 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/enabled", true, "", 0 }, - {"enable-sound", false, OPTION_BOOL, "/sim/sound/enabled", false, "", 0 }, + {"disable-sound", false, OPTION_BOOL, "/sim/sound/enabled", false, "", 0 }, + {"enable-sound", false, OPTION_BOOL, "/sim/sound/enabled", true, "", 0 }, + {"sound-device", true, OPTION_STRING, "/sim/sound/device-name", false, "", 0 }, {"airport", true, OPTION_STRING, "/sim/presets/airport-id", false, "", 0 }, {"runway", true, OPTION_FUNC, "", false, "", fgOptRunway }, {"vor", true, OPTION_FUNC, "", false, "", fgOptVOR },