mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-19 03:45:47 +01:00
silence extra buffers not handled/touched/filled by an AU (e.g. 2in/1out - silence the 2nd buffer)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6610 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b55130e425
commit
cdcc0e0282
1 changed files with 9 additions and 0 deletions
|
|
@ -1207,6 +1207,15 @@ AUPlugin::connect_and_run (vector<Sample*>& bufs, uint32_t maxbuf, int32_t& in,
|
|||
memcpy (bufs[i]+offset, buffers->mBuffers[i].mData, nframes * sizeof (Sample));
|
||||
}
|
||||
}
|
||||
|
||||
/* now silence any buffers that were passed in but the that the plugin
|
||||
did not fill/touch/use.
|
||||
*/
|
||||
|
||||
for (i < maxbuf) {
|
||||
memset (bufs[i]+offset, 0, nframes * sizeof (Sample));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue