Fix broken whitespace. I'd apologize for the compile times if it was my fault :D
[ardour.git] / libs / ardour / ardour / internal_return.h
index d05e764592787144cb4118a3d0e13fb5ad6e7b14..b6a3e2625309766bcf62df8bef635bc074a400a4 100644 (file)
 
 namespace ARDOUR {
 
+class InternalSend;
+
 class InternalReturn : public Return
 {
   public:
        InternalReturn (Session&);
 
-XMLNode& state(bool full);
+       XMLNode& state(bool full);
        XMLNode& get_state(void);
        int set_state(const XMLNode&, int version);
 
-       void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, nframes_t nframes, bool);
+       void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool);
        bool configure_io (ChanCount in, ChanCount out);
        bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const;
-       int  set_block_size (nframes_t);
+       int  set_block_size (pframes_t);
 
-       BufferSet* get_buffers();
-       void release_buffers();
+       void add_send (InternalSend *);
+       void remove_send (InternalSend *);
 
-       static PBD::Signal1<void,nframes_t> CycleStart;
+       static PBD::Signal1<void, pframes_t> CycleStart;
 
   private:
        BufferSet buffers;
-       gint user_count; /* atomic */
-       void allocate_buffers (nframes_t);
-       void cycle_start (nframes_t);
+       /** sends that we are receiving data from */
+       std::list<InternalSend*> _sends;
+
+       void allocate_buffers (pframes_t);
+       void cycle_start (pframes_t);
 };
 
 } // namespace ARDOUR