From f4290fc09c9ba03dd2c3d4f8fc6754bab29fa724 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 19 Aug 2010 23:53:00 +0000 Subject: [PATCH] Resize internal send target buffers on set_block_size(); fixes #3330. git-svn-id: svn://localhost/ardour2/branches/3.0@7655 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/internal_send.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/internal_send.cc b/libs/ardour/internal_send.cc index 9c4238b134..8ec5430308 100644 --- a/libs/ardour/internal_send.cc +++ b/libs/ardour/internal_send.cc @@ -34,6 +34,7 @@ using namespace std; InternalSend::InternalSend (Session& s, boost::shared_ptr mm, boost::shared_ptr sendto, Delivery::Role role) : Send (s, mm, role) + , target (0) { if (sendto) { if (use_target (sendto)) { @@ -149,6 +150,11 @@ int InternalSend::set_block_size (nframes_t nframes) { mixbufs.ensure_buffers (_configured_input, nframes); + + /* ensure that our target can cope with us merging this many frames to it */ + if (target) { + target->ensure_buffers (_configured_input, nframes); + } return 0; }