* Fix --disable-sound
* Add a new command line option: --sound-device="" This makes OpenAL use the sepcified audio device instead of the default output device. (Look for playback devices when calling openal-info of alcinfo)
This commit is contained in:
parent
3d19352f13
commit
ef4814599d
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Add table
Reference in a new issue