X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fredirect_automation_line.cc;h=1ea5013295ef79d445483a5d0ba9be616d05a65f;hb=76c25a4a4459b8e550c3c687458d04db0beaee77;hp=94141a560f2e416e25b4f3034811941536c11253;hpb=183f69970c6c436b102f8b2fbe1bc6070c9e9bfe;p=ardour.git diff --git a/gtk2_ardour/redirect_automation_line.cc b/gtk2_ardour/redirect_automation_line.cc index 94141a560f..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, Gnome::Canvas::Item& parent, - AutomationList& l, - gint (*point_callback)(Gnome::Canvas::Item*, GdkEvent*, gpointer), - gint (*line_callback)(Gnome::Canvas::Item*, 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;