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:
Paul Davis 2010-02-01 17:25:43 +00:00
parent b55130e425
commit cdcc0e0282

View file

@ -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;
}