boost::shared_ptr<AutomationList> alist,
boost::shared_ptr<Route> route);
- void set_value (double val, PBD::Controllable::GroupControlDisposition group_override) {
- boost::shared_ptr<Route> r = _route.lock();
- if (r) {
- r->set_control ((AutomationType) parameter().type(), val, group_override);
- }
- }
+ RouteAutomationControl (const std::string& name,
+ AutomationType atype,
+ const ParameterDescriptor& descriptor,
+ boost::shared_ptr<AutomationList> alist,
+ boost::shared_ptr<Route> route);
protected:
friend class Route;
#include "ardour/pannable.h"
#include "ardour/panner.h"
#include "ardour/panner_shell.h"
+#include "ardour/parameter_descriptor.h"
#include "ardour/plugin_insert.h"
#include "ardour/port.h"
#include "ardour/port_insert.h"
#endif
#include "ardour/automation_control.h"
+#include "ardour/parameter_descriptor.h"
#include "ardour/route.h"
#include "ardour/session.h"
{
}
+Route::RouteAutomationControl::RouteAutomationControl (const std::string& name,
+ AutomationType atype,
+ const ParameterDescriptor& desc,
+ boost::shared_ptr<AutomationList> alist,
+ boost::shared_ptr<Route> r)
+ : AutomationControl (r->session(), Evoral::Parameter (atype), desc, alist, name)
+ , _route (r)
+{
+}
+
Route::GainControllable::GainControllable (Session& s, AutomationType atype, boost::shared_ptr<Route> r)
: GainControl (s, Evoral::Parameter(atype))
, _route (r)