1
0
Fork 0

Display the (default) OpenAL renderer as well as the OpenAL vendor when requesting the list of sound devices.

This commit is contained in:
ehofman 2009-12-26 10:11:17 +00:00 committed by Tim Moore
parent 61ffbf4615
commit 90e44c6696

View file

@ -1630,9 +1630,16 @@ fgParseArgs (int argc, char **argv)
} else if (result == FG_OPTIONS_SHOW_SOUND_DEVICES) {
SGSoundMgr smgr;
smgr.init();
string vendor = smgr.get_vendor();
string renderer = smgr.get_renderer();
cout << renderer << " provided by " << vendor << endl;
cout << endl << "No. Device" << endl;
vector <const char*>devices = smgr.get_available_devices();
for (int i=0; i<devices.size(); i++) {
printf("%i. \"%s\"\n", i, devices[i]);
cout << i << ". \"" << devices[i] << "\"" << endl;
}
devices.clear();
exit(0);