Fix code style
[ardour.git] / libs / ardour / ardour / internal_return.h
index 41d09b280590f84327b5170201ebe354dbb9781f..71b8fc354d20d38042ab9481760513ac7fa725f1 100644 (file)
 
 namespace ARDOUR {
 
-class InternalReturn : public Return
+class InternalSend;
+
+class LIBARDOUR_API InternalReturn : public Return
 {
-  public:
+public:
        InternalReturn (Session&);
 
-XMLNode& state(bool full);
-       XMLNode& get_state(void);
-       int set_state(const XMLNode&, int version);
+       void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool);
+       bool configure_io (ChanCount, ChanCount);
+       bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
 
-       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 (pframes_t);
+       void add_send (InternalSend *);
+       void remove_send (InternalSend *);
 
-       BufferSet* get_buffers();
-       void release_buffers();
+       void set_playback_offset (samplecnt_t cnt);
 
-       static PBD::Signal1<void, pframes_t> CycleStart;
+protected:
+       XMLNode& state ();
 
-  private:
-       BufferSet buffers;
-       gint user_count; /* atomic */
-       void allocate_buffers (pframes_t);
-       void cycle_start (pframes_t);
+private:
+       /** sends that we are receiving data from */
+       std::list<InternalSend*> _sends;
+       /** mutex to protect _sends */
+       Glib::Threads::Mutex _sends_mutex;
 };
 
 } // namespace ARDOUR