mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 12:26:07 +01:00
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:
parent
611c33e680
commit
f4290fc09c
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue