diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-10-04 13:19:30 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-10-05 14:15:02 -0400 |
commit | 67ba0bd992920032cc645cb2954084f54fa59b2f (patch) | |
tree | 197fd495ad0855be7b9181816209827df33fdfdb /libs/ardour/ardour/transport_master.h | |
parent | ccccac7a10378de5e17f7562c1f9dc889d443f68 (diff) |
laying the groundwork for adding/removing transport masters
Diffstat (limited to 'libs/ardour/ardour/transport_master.h')
-rw-r--r-- | libs/ardour/ardour/transport_master.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/ardour/transport_master.h b/libs/ardour/ardour/transport_master.h index e4fee4bba2..721b8e7a4a 100644 --- a/libs/ardour/ardour/transport_master.h +++ b/libs/ardour/ardour/transport_master.h @@ -155,7 +155,7 @@ class LIBARDOUR_API TransportMaster : public PBD::Stateful { TransportMaster (SyncSource t, std::string const & name); virtual ~TransportMaster(); - static boost::shared_ptr<TransportMaster> factory (SyncSource, std::string const &); + static boost::shared_ptr<TransportMaster> factory (SyncSource, std::string const &, bool removeable); static boost::shared_ptr<TransportMaster> factory (XMLNode const &); virtual void pre_process (pframes_t nframes, samplepos_t now, boost::optional<samplepos_t>) = 0; @@ -337,12 +337,20 @@ class LIBARDOUR_API TransportMaster : public PBD::Stateful { void get_current (double&, samplepos_t&, samplepos_t); + /* this is set at construction, and not changeable later, so it is not + * a property + */ + + bool removeable () const { return _removeable; } + void set_removeable (bool yn) { _removeable = yn; } + protected: SyncSource _type; PBD::Property<std::string> _name; Session* _session; sampleoffset_t _current_delta; bool _pending_collect; + bool _removeable; PBD::Property<TransportRequestType> _request_mask; /* lists transport requests still accepted when we're in control */ PBD::Property<bool> _locked; PBD::Property<bool> _sclock_synced; |