13
0

Improve multi-channel instrument listing

This commit is contained in:
Robin Gareus 2019-10-15 16:02:47 +02:00
parent 4eef9c20b8
commit 9fa7e919a7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -311,15 +311,22 @@ PluginManager::detect_type_ambiguities (PluginInfoList& pil)
if (dup.back()->name != (*i)->name) {
/* found multiple plugins with same name */
bool typediff = false;
bool chandiff = false;
for (PluginInfoList::iterator j = dup.begin(); j != dup.end(); ++j) {
if (dup.front()->type != (*j)->type) {
typediff = true;
break;
}
chandiff |= (*j)->multichannel_name_ambiguity;
}
if (typediff) {
for (PluginInfoList::iterator j = dup.begin(); j != dup.end(); ++j) {
(*j)->plugintype_name_ambiguity = true;
/* show multi-channel information for consistency, when other types display it.
* eg. "Foo 8 outs, VST", "Foo 12 outs, VST", "Foo <=12 outs, AU"
*/
if (chandiff) {
(*j)->multichannel_name_ambiguity = true;
}
}
}
dup.clear ();