From 8f0750cc7e2a9c9d7c7a8c75a6df332c465a5292 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Feb 2011 00:55:52 +0000 Subject: Make InternalReturns collect their sends' data on the return's ::run(), rather than sends merging data with the InternalReturn on their ::run(). This makes internal send/return thread-safe so that N routes can send to 1 whilst they are being run in parallel process threads. git-svn-id: svn://localhost/ardour2/branches/3.0@8904 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/internal_send.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/ardour/ardour/internal_send.h') diff --git a/libs/ardour/ardour/internal_send.h b/libs/ardour/ardour/internal_send.h index 53c6686887..95fec708ed 100644 --- a/libs/ardour/ardour/internal_send.h +++ b/libs/ardour/ardour/internal_send.h @@ -48,9 +48,12 @@ class InternalSend : public Send boost::shared_ptr target_route() const { return _send_to; } const PBD::ID& target_id() const { return _send_to_id; } + BufferSet const & get_buffers () const { + return mixbufs; + } + private: - BufferSet mixbufs; - BufferSet* target; + BufferSet mixbufs; boost::shared_ptr _send_to; PBD::ID _send_to_id; PBD::ScopedConnection connect_c; -- cgit v1.2.3