record enable control starts with its route's time domain
This commit is contained in:
parent
dc66a963bb
commit
e72ce1317e
@ -36,7 +36,7 @@ class Session;
|
||||
class LIBARDOUR_API RecordEnableControl : public SlavableAutomationControl
|
||||
{
|
||||
public:
|
||||
RecordEnableControl (Session& session, std::string const & name, Recordable& m);
|
||||
RecordEnableControl (Session& session, std::string const & name, Recordable& m, Temporal::TimeDomain);
|
||||
~RecordEnableControl() {}
|
||||
|
||||
/* Most (Slavable)AutomationControls do not override this, but we need
|
||||
|
@ -24,10 +24,9 @@
|
||||
using namespace ARDOUR;
|
||||
using namespace PBD;
|
||||
|
||||
#warning NUTEMPO QUESTION what time domain should this really use?
|
||||
RecordEnableControl::RecordEnableControl (Session& session, std::string const & name, Recordable& r)
|
||||
RecordEnableControl::RecordEnableControl (Session& session, std::string const & name, Recordable& r, Temporal::TimeDomain td)
|
||||
: SlavableAutomationControl (session, RecEnableAutomation, ParameterDescriptor (RecEnableAutomation),
|
||||
boost::shared_ptr<AutomationList>(new AutomationList(Evoral::Parameter(RecEnableAutomation), Temporal::AudioTime)),
|
||||
boost::shared_ptr<AutomationList>(new AutomationList(Evoral::Parameter(RecEnableAutomation), td)),
|
||||
name)
|
||||
, _recordable (r)
|
||||
{
|
||||
|
@ -104,7 +104,7 @@ Track::init ()
|
||||
boost::shared_ptr<Route> rp (boost::dynamic_pointer_cast<Route> (shared_from_this()));
|
||||
boost::shared_ptr<Track> rt = boost::dynamic_pointer_cast<Track> (rp);
|
||||
|
||||
_record_enable_control.reset (new RecordEnableControl (_session, EventTypeMap::instance().to_symbol (RecEnableAutomation), *this));
|
||||
_record_enable_control.reset (new RecordEnableControl (_session, EventTypeMap::instance().to_symbol (RecEnableAutomation), *this, time_domain()));
|
||||
add_control (_record_enable_control);
|
||||
|
||||
_record_safe_control.reset (new RecordSafeControl (_session, EventTypeMap::instance().to_symbol (RecSafeAutomation), *this));
|
||||
|
Loading…
Reference in New Issue
Block a user