From 3abb7afa4560296c3d44d7e2ebd51e34a1a02f9b Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 28 Nov 2009 13:33:54 +0000 Subject: [PATCH] List all available playback devices under '/sim/sound/devcies' --- src/Main/fg_init.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- 2.39.5