From: ehofman Date: Sat, 28 Nov 2009 13:33:54 +0000 (+0000) Subject: List all available playback devices under '/sim/sound/devcies' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3abb7afa4560296c3d44d7e2ebd51e34a1a02f9b;p=flightgear.git List all available playback devices under '/sim/sound/devcies' --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 3d253091d..6e99a68bc 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -1455,6 +1455,14 @@ bool fgInitSubsystems() { globals->get_soundmgr()->bind(); globals->get_soundmgr()->init(fgGetString("/sim/sound/device-name", NULL)); + vector devices = + globals->get_soundmgr()->get_available_devices(); + for (int i=0; isetStringValue(devices[i]); + } + devices.clear(); + //////////////////////////////////////////////////////////////////// // Initialize the property interpolator subsystem. Put into the INIT // group because the "nasal" subsystem may need it at GENERAL take-down.