redesign how XML state, bitslots and names get propagated during copying a send/port...
[ardour.git] / libs / ardour / ardour / return.h
index 3d9fb9a9bda61d7917cddd19dbe554800d683f2a..f41360b73b96b730f9f69782677f27756a560570 100644 (file)
@@ -37,6 +37,7 @@ class Return : public IOProcessor
 {
 public:
        Return (Session&, bool internal = false);
+       Return (Session&, const std::string& name, uint32_t bslot, bool internal = false);
        virtual ~Return ();
 
        uint32_t bit_slot() const { return _bitslot; }
@@ -59,7 +60,8 @@ public:
        bool configure_io (ChanCount in, ChanCount out);
 
        static uint32_t how_many_returns();
-       static void make_unique (XMLNode &, Session &);
+       static void make_unique (XMLNode &);
+       static std::string name_and_id_new_return (Session&, uint32_t&);
 
   protected:
        bool _metering;
@@ -73,7 +75,6 @@ private:
        uint32_t _bitslot;
 
        void collect_input (BufferSet& bufs, pframes_t nframes, ChanCount offset = ChanCount::ZERO);
-       void just_meter_input (framepos_t start_frame, framepos_t end_frame, pframes_t nframes);
 };
 
 } // namespace ARDOUR