diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-03-13 20:14:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-03-13 20:14:55 +0000 |
commit | d46acb86eaa3a94fb2dc673964271ecfe0f004dd (patch) | |
tree | e6e24673cff96baf335a2aa3583a8d8a8857d2a1 /libs/ardour/ardour/port_insert.h | |
parent | b557061ec444cdac8b23d6e433a6fe26c1e176a1 (diff) |
redesign how XML state, bitslots and names get propagated during copying a send/port insert/return
git-svn-id: svn://localhost/ardour2/branches/3.0@11669 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/port_insert.h')
-rw-r--r-- | libs/ardour/ardour/port_insert.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/ardour/port_insert.h b/libs/ardour/ardour/port_insert.h index 2ff9031afa..f42294b2b4 100644 --- a/libs/ardour/ardour/port_insert.h +++ b/libs/ardour/ardour/port_insert.h @@ -45,6 +45,8 @@ class PortInsert : public IOProcessor { public: PortInsert (Session&, boost::shared_ptr<Pannable>, boost::shared_ptr<MuteMaster> mm); + PortInsert (Session&, const std::string&, uint32_t bitslot, + boost::shared_ptr<Pannable>, boost::shared_ptr<MuteMaster> mm); ~PortInsert (); XMLNode& state(bool full); @@ -63,7 +65,7 @@ class PortInsert : public IOProcessor void activate (); void deactivate (); - uint32_t bit_slot() const { return bitslot; } + uint32_t bit_slot() const { return _bitslot; } void start_latency_detection (); void stop_latency_detection (); @@ -72,13 +74,16 @@ class PortInsert : public IOProcessor void set_measured_latency (framecnt_t); framecnt_t latency () const; + static void make_unique (XMLNode &); + static std::string name_and_id_new_insert (Session&, uint32_t&); + private: /* disallow copy construction */ PortInsert (const PortInsert&); boost::shared_ptr<Delivery> _out; - uint32_t bitslot; + uint32_t _bitslot; MTDM* _mtdm; bool _latency_detect; framecnt_t _latency_flush_frames; |