update automatable parameter's Evoral::Control object when AU parameter listener notifies us of a change
git-svn-id: svn://localhost/ardour2/branches/3.0@13024 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1eb4f9a2da
commit
67f8063256
@ -2790,6 +2790,11 @@ AUPlugin::parameter_change_listener (void* /*arg*/, void* /*src*/, const AudioUn
|
||||
ParameterMap::iterator i = parameter_map.find (event->mArgument.mParameter.mParameterID);
|
||||
|
||||
if (i != parameter_map.end()) {
|
||||
boost::shared_ptr<AutomationControl> ac = automation_control (Evoral::Parameter (PluginAutomation, 0, i->second));
|
||||
if (ac) {
|
||||
cerr << "updating " << ac->name() << " to << new_value << endl;
|
||||
ac->set_double (new_value);
|
||||
}
|
||||
ParameterChanged (i->second, new_value);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user