Fix crash introduced in r11877 (oops). Add LV2Plugin::port_index().
[ardour.git] / libs / ardour / ardour / internal_return.h
index 41d09b280590f84327b5170201ebe354dbb9781f..291b51896ca2434cc5e32dba604f5296561e5be2 100644 (file)
 
 namespace ARDOUR {
 
+class InternalSend;
+
 class InternalReturn : public Return
 {
   public:
        InternalReturn (Session&);
 
-XMLNode& state(bool full);
-       XMLNode& get_state(void);
-       int set_state(const XMLNode&, int version);
+       XMLNode& state (bool full);
+       XMLNode& get_state ();
 
        void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool);
-       bool configure_io (ChanCount in, ChanCount out);
+       bool configure_io (ChanCount, ChanCount);
        bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const;
-       int  set_block_size (pframes_t);
-
-       BufferSet* get_buffers();
-       void release_buffers();
 
-       static PBD::Signal1<void, pframes_t> CycleStart;
+       void add_send (InternalSend *);
+       void remove_send (InternalSend *);
 
   private:
-       BufferSet buffers;
-       gint user_count; /* atomic */
-       void allocate_buffers (pframes_t);
-       void cycle_start (pframes_t);
+       /** sends that we are receiving data from */
+       std::list<InternalSend*> _sends;
+       /** mutex to protect _sends */
+       Glib::Mutex _sends_mutex;
 };
 
 } // namespace ARDOUR