Tweak colouring in the processor list.
[ardour.git] / libs / ardour / automatable.cc
index 4de2e89b412e6c972479012ace282f00459c705b..03e5ad97c31e7d511222931fb86e24a3085652d5 100644 (file)
@@ -45,7 +45,7 @@ using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
-nframes_t Automatable::_automation_interval = 0;
+framecnt_t Automatable::_automation_interval = 0;
 
 Automatable::Automatable(Session& session)
        : _a_session(session)
@@ -387,7 +387,7 @@ Automatable::protect_automation ()
 }
 
 void
-Automatable::automation_snapshot (nframes_t now, bool force)
+Automatable::automation_snapshot (framepos_t now, bool force)
 {
        if (force || _last_automation_snapshot > now || (now - _last_automation_snapshot) > _automation_interval) {
 
@@ -456,9 +456,10 @@ Automatable::control_factory(const Evoral::Parameter& param)
                        warning << "GainAutomation for non-Amp" << endl;
                }
        } else if (param.type() == PanAutomation) {
-               Panner* me = dynamic_cast<Panner*>(this);
-               if (me) {
-                       control = new Panner::PanControllable(me->session(), X_("panner"), *me, param);
+               Panner* panner = dynamic_cast<Panner*>(this);
+               if (panner) {
+                        StreamPanner& sp (panner->streampanner (param.channel()));
+                       control = new StreamPanner::PanControllable (_a_session, X_("direction"), &sp, param);
                } else {
                        warning << "PanAutomation for non-Panner" << endl;
                }