List all available playback devices under '/sim/sound/devcies'
This commit is contained in:
parent
ef4814599d
commit
3abb7afa45
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue