From 90e44c669641e1799ea4ac80156775ced15952a6 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 26 Dec 2009 10:11:17 +0000 Subject: [PATCH] Display the (default) OpenAL renderer as well as the OpenAL vendor when requesting the list of sound devices. --- src/Main/options.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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