diff options
author | Carl Hetherington <carl@carlh.net> | 2011-02-20 00:55:52 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-02-20 00:55:52 +0000 |
commit | 8f0750cc7e2a9c9d7c7a8c75a6df332c465a5292 (patch) | |
tree | 965efe70a7adc6378a7920586c6a1502daec57be /libs/ardour/ardour/internal_send.h | |
parent | 13232d03f3e5f8a5d7d19392c26c27ce0327250c (diff) |
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
Diffstat (limited to 'libs/ardour/ardour/internal_send.h')
-rw-r--r-- | libs/ardour/ardour/internal_send.h | 7 |
1 files changed, 5 insertions, 2 deletions
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<Route> 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<Route> _send_to; PBD::ID _send_to_id; PBD::ScopedConnection connect_c; |