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
This commit is contained in:
Carl Hetherington 2010-08-19 23:53:00 +00:00
parent 611c33e680
commit f4290fc09c

View file

@ -34,6 +34,7 @@ using namespace std;
InternalSend::InternalSend (Session& s, boost::shared_ptr<MuteMaster> mm, boost::shared_ptr<Route> 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;
}