X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fredirect_automation_line.cc;h=1ea5013295ef79d445483a5d0ba9be616d05a65f;hb=2592a320d42dd4a157ee16101c042d875d3142be;hp=fb79c1288b7398c08b7177b9ec1f24e054c621ac;hpb=14d43ca9fe28a8309b4a52fa85e2b0c64a92248b;p=ardour.git diff --git a/gtk2_ardour/redirect_automation_line.cc b/gtk2_ardour/redirect_automation_line.cc index fb79c1288b..1ea5013295 100644 --- a/gtk2_ardour/redirect_automation_line.cc +++ b/gtk2_ardour/redirect_automation_line.cc @@ -32,19 +32,20 @@ using namespace std; using namespace ARDOUR; - -RedirectAutomationLine::RedirectAutomationLine (string name, Redirect& rd, uint32_t port, Session& s, - TimeAxisView& tv, GnomeCanvasItem* parent, - AutomationList& l, - gint (*point_callback)(GnomeCanvasItem*, GdkEvent*, gpointer), - gint (*line_callback)(GnomeCanvasItem*, GdkEvent*, gpointer)) - - : AutomationLine (name, tv, parent, l, point_callback, line_callback), +using namespace PBD; + +RedirectAutomationLine::RedirectAutomationLine (const string & name, Redirect& rd, uint32_t port, Session& s, + + TimeAxisView& tv, ArdourCanvas::Group& parent, + + AutomationList& l) + + : AutomationLine (name, tv, parent, l), session (s), _redirect (rd), _port (port) { - set_verbose_cursor_uses_gain_mapping (false); + set_verbose_cursor_uses_gain_mapping (false); PluginInsert *pi; Plugin::ParameterDescriptor desc; @@ -54,7 +55,7 @@ RedirectAutomationLine::RedirectAutomationLine (string name, Redirect& rd, uint3 /*NOTREACHED*/ } - pi->plugin().get_parameter_descriptor (_port, desc); + pi->plugin()->get_parameter_descriptor (_port, desc); upper = desc.upper; lower = desc.lower;