From e6eb059576eefd9a26c177627ae7dd3ba2feb727 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 9 Jun 2009 20:21:19 +0000 Subject: the big Route structure refactor. !!!! THIS WILL ***NOT LOAD*** PRIOR 3.0 or 2.X SESSIONS !!!! BREAKAGE IS EXPECTED !!!! IF YOU HAVE AND NEED A WORKING 3.0 DO **NOT** UPDATE. !!!! otherwise, update and enjoy the steadily emerging joys of this major reworking of ardour internals git-svn-id: svn://localhost/ardour2/branches/3.0@5137 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/automatable.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/ardour/automatable.cc') diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 0fa4e9c67a..bf08a4026c 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -24,8 +24,11 @@ #include #include "pbd/error.h" #include "pbd/enumwriter.h" + #include "midi++/names.h" + #include "ardour/automatable.h" +#include "ardour/amp.h" #include "ardour/event_type_map.h" #include "ardour/midi_track.h" #include "ardour/panner.h" @@ -382,7 +385,7 @@ Automatable::automation_snapshot (nframes_t now, bool force) } void -Automatable::transport_stopped (nframes_t now) +Automatable::transport_stopped (sframes_t now) { for (Controls::iterator li = controls().begin(); li != controls().end(); ++li) { @@ -409,7 +412,7 @@ Automatable::control_factory(const Evoral::Parameter& param) } else if (param.type() == PluginAutomation) { control = new PluginInsert::PluginControl((PluginInsert*)this, param); } else if (param.type() == GainAutomation) { - control = new IO::GainControl( X_("gaincontrol"), (IO*)this, param); + control = new Amp::GainControl( X_("gaincontrol"), _a_session, (Amp*)this, param); } else if (param.type() == PanAutomation) { Panner* me = dynamic_cast(this); if (me) { -- cgit v1.2.3