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)
}
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) {
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;
}