diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-19 01:46:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-19 01:46:49 +0200 |
commit | e0846c6aee11853597fb6867b35a16f7a3b43479 (patch) | |
tree | 9dc16daa4bccc555905b3f1e565cc725e1506528 /gtk2_ardour/plugin_pin_dialog.cc | |
parent | f0fd7890a1bcdf9142816615d396e0e393016048 (diff) |
...use shared backend function instead
Diffstat (limited to 'gtk2_ardour/plugin_pin_dialog.cc')
-rw-r--r-- | gtk2_ardour/plugin_pin_dialog.cc | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/gtk2_ardour/plugin_pin_dialog.cc b/gtk2_ardour/plugin_pin_dialog.cc index 070f6da064..3062dc1a69 100644 --- a/gtk2_ardour/plugin_pin_dialog.cc +++ b/gtk2_ardour/plugin_pin_dialog.cc @@ -470,33 +470,8 @@ PluginPinWidget::refill_output_presets () { using namespace Menu_Helpers; _out_presets.clear_items (); - PluginOutputConfiguration ppc (_pi->plugin (0)->possible_output ()); - - bool need_dropdown = true; - - if (ppc.size () == 0) { - need_dropdown = false; - } - if (!_pi->strict_io () && ppc.size () == 1) { - need_dropdown = false; - } - - if (_pi->strict_io () && ppc.size () == 1) { - // "stereo" is currently preferred default for instruments, see PluginInsert - if (ppc.find (2) != ppc.end ()) { - need_dropdown = false; - } - } - - if (!_pi->needs_midi_input ()) { - /* loose definition of instruments, maybe impose additional - * || _pi->natural_input_streams ().n_audio () != 0 - * and special case variable output plugins - * && !_pi->plugin (0)->info->reconfigurable_io() - */ - need_dropdown = false; - } + bool need_dropdown = _pi->has_output_presets (); if (!need_dropdown) { _out_presets.set_sensitive (false); @@ -511,6 +486,7 @@ PluginPinWidget::refill_output_presets () _out_presets.set_text (_("Automatic")); } + PluginOutputConfiguration ppc (_pi->plugin (0)->possible_output ()); if (ppc.find (0) != ppc.end ()) { // anyting goes ppc.clear (); |