1
0
Fork 0

List all available playback devices under '/sim/sound/devcies'

This commit is contained in:
ehofman 2009-11-28 13:33:54 +00:00 committed by Tim Moore
parent ef4814599d
commit 3abb7afa45

View file

@ -1455,6 +1455,14 @@ bool fgInitSubsystems() {
globals->get_soundmgr()->bind();
globals->get_soundmgr()->init(fgGetString("/sim/sound/device-name", NULL));
vector <const char*>devices =
globals->get_soundmgr()->get_available_devices();
for (int i=0; i<devices.size(); i++) {
SGPropertyNode *p = fgGetNode("/sim/sound/devices/device", i, true);
p->setStringValue(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.