X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Finternal_return.h;h=48fcab151e32e26d24479bb86e08a7cd74015eae;hb=57df370e2abf175c3141a2e904758bfd3f95e114;hp=2b8e6183373c7ad2cdfb58005011fbf9f9c296ef;hpb=a4d9d09af5853f769e1143c2353806bfb7d89f58;p=ardour.git diff --git a/libs/ardour/ardour/internal_return.h b/libs/ardour/ardour/internal_return.h index 2b8e618337..48fcab151e 100644 --- a/libs/ardour/ardour/internal_return.h +++ b/libs/ardour/ardour/internal_return.h @@ -27,32 +27,28 @@ namespace ARDOUR { -class InternalReturn : public Return +class InternalSend; + +class LIBARDOUR_API InternalReturn : public Return { public: InternalReturn (Session&); - bool visible() const; - - XMLNode& state(bool full); - XMLNode& get_state(void); - int set_state(const XMLNode&, int version); - - void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_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); + 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 PBD::Signal1 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 _sends; + /** mutex to protect _sends */ + Glib::Threads::Mutex _sends_mutex; }; } // namespace ARDOUR