treat VCA assign as a RouteGroup property.
[ardour.git] / libs / ardour / ardour / internal_return.h
index a23b17adf8098a3eaf2218585ee6679371ee6f2f..48fcab151e32e26d24479bb86e08a7cd74015eae 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2009 Paul Davis 
+    Copyright (C) 2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -20,7 +20,6 @@
 #ifndef __ardour_internal_return_h__
 #define __ardour_internal_return_h__
 
-#include <sigc++/signal.h>
 
 #include "ardour/ardour.h"
 #include "ardour/return.h"
 
 namespace ARDOUR {
 
-class InternalReturn : public Return
+class InternalSend;
+
+class LIBARDOUR_API InternalReturn : public Return
 {
-  public:      
+  public:
        InternalReturn (Session&);
-       InternalReturn (Session&, const XMLNode&);
-
-       bool visible() const { return false; }
-
-       XMLNode& state(bool full);
-       XMLNode& get_state(void);
-       int set_state(const XMLNode& node);
 
-       void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes);
-       bool configure_io (ChanCount in, ChanCount out);
-       bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const;
-       void set_block_size (nframes_t);
+       XMLNode& state (bool full);
+       XMLNode& get_state ();
 
-       BufferSet* get_buffers();
-       void release_buffers();
+       void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, double speed, pframes_t nframes, bool);
+       bool configure_io (ChanCount, ChanCount);
+       bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
 
-       static sigc::signal<void,nframes_t> CycleStart;
+       void add_send (InternalSend *);
+       void remove_send (InternalSend *);
 
   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;
+       /** mutex to protect _sends */
+       Glib::Threads::Mutex _sends_mutex;
 };
 
 } // namespace ARDOUR