summaryrefslogtreecommitdiff
path: root/libs/ardour/plugin_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-01-30 00:44:09 +0100
committerRobin Gareus <robin@gareus.org>2018-01-30 01:34:29 +0100
commit34f9bd502b1342ce48dc2fbfd4844b5cb902c66e (patch)
tree7181462b4764b1894810ff19ef2dbe47a47ddb88 /libs/ardour/plugin_manager.cc
parent3eb6a40ce40757e2e36b856d0d80e78a667b7046 (diff)
NO-OP: whitespace
Diffstat (limited to 'libs/ardour/plugin_manager.cc')
-rw-r--r--libs/ardour/plugin_manager.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc
index 6df915279c..a8379d74a8 100644
--- a/libs/ardour/plugin_manager.cc
+++ b/libs/ardour/plugin_manager.cc
@@ -689,11 +689,11 @@ PluginManager::ladspa_discover (string path)
info->unique_id = buf;
for (uint32_t n=0; n < descriptor->PortCount; ++n) {
- if ( LADSPA_IS_PORT_AUDIO (descriptor->PortDescriptors[n]) ) {
- if ( LADSPA_IS_PORT_INPUT (descriptor->PortDescriptors[n]) ) {
+ if (LADSPA_IS_PORT_AUDIO (descriptor->PortDescriptors[n])) {
+ if (LADSPA_IS_PORT_INPUT (descriptor->PortDescriptors[n])) {
info->n_inputs.set_audio(info->n_inputs.n_audio() + 1);
}
- else if ( LADSPA_IS_PORT_OUTPUT (descriptor->PortDescriptors[n]) ) {
+ else if (LADSPA_IS_PORT_OUTPUT (descriptor->PortDescriptors[n])) {
info->n_outputs.set_audio(info->n_outputs.n_audio() + 1);
}
}
@@ -1268,12 +1268,14 @@ PluginManager::lxvst_discover (string path, bool cache_only)
info->n_outputs.set_midi ((finfo->wantMidi&2) ? 1 : 0);
info->type = ARDOUR::LXVST;
- /* Make sure we don't find the same plugin in more than one place along
- the LXVST_PATH We can't use a simple 'find' because the path is included
- in the PluginInfo, and that is the one thing we can be sure MUST be
- different if a duplicate instance is found. So we just compare the type
- and unique ID (which for some VSTs isn't actually unique...)
- */
+ set_tags (info->type, info->unique_id, info->category, true);
+
+ /* Make sure we don't find the same plugin in more than one place along
+ * the LXVST_PATH We can't use a simple 'find' because the path is included
+ * in the PluginInfo, and that is the one thing we can be sure MUST be
+ * different if a duplicate instance is found. So we just compare the type
+ * and unique ID (which for some VSTs isn't actually unique...)
+ */
// TODO: check dup-IDs with windowsVST, too
bool duplicate = false;