Check whether a VST param should be automated when building the list of automatables
This commit is contained in:
parent
0036785d5a
commit
365cc92cba
@ -106,6 +106,7 @@
|
||||
#define effEditIdle 19
|
||||
#define effEditTop 20
|
||||
#define effProcessEvents 25
|
||||
#define effCanBeAutomated 26
|
||||
// the next one from http://asseca.com/vst-24-specs/index.html
|
||||
#define effGetPlugCategory 35
|
||||
#define effGetEffectName 45
|
||||
|
@ -661,7 +661,9 @@ VSTPlugin::automatable () const
|
||||
set<Evoral::Parameter> ret;
|
||||
|
||||
for (uint32_t i = 0; i < parameter_count(); ++i) {
|
||||
ret.insert (ret.end(), Evoral::Parameter(PluginAutomation, 0, i));
|
||||
if (_plugin->dispatcher (_plugin, effCanBeAutomated, i, 0, NULL, 0)) {
|
||||
ret.insert (ret.end(), Evoral::Parameter(PluginAutomation, 0, i));
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user