13
0

squash the dreaded noise-on-stop of guirja01

git-svn-id: svn://localhost/ardour2/trunk@1393 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-01-26 17:22:43 +00:00
parent fccc2229ea
commit 17033c4448

View File

@ -570,11 +570,18 @@ IO::collect_input (vector<Sample *>& bufs, uint32_t nbufs, nframes_t nframes, nf
/* fill any excess outputs with the last input */
while (n < nbufs && last) {
if (last) {
while (n < nbufs) {
// the dest buffer's offset has already been applied
memcpy (bufs[n], last, sizeof (Sample) * nframes);
++n;
}
} else {
while (n < nbufs) {
memset (bufs[n], 0, sizeof (Sample) * nframes);
++n;
}
}
}
void