From: ehofman Date: Sat, 26 Dec 2009 10:11:17 +0000 (+0000) Subject: Display the (default) OpenAL renderer as well as the OpenAL vendor when requesting... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=90e44c669641e1799ea4ac80156775ced15952a6;p=flightgear.git Display the (default) OpenAL renderer as well as the OpenAL vendor when requesting the list of sound devices. --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index e03f1b1f0..9b5118511 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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 devices = smgr.get_available_devices(); for (int i=0; i