mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
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:
parent
fccc2229ea
commit
17033c4448
1 changed files with 11 additions and 4 deletions
|
|
@ -570,10 +570,17 @@ IO::collect_input (vector<Sample *>& bufs, uint32_t nbufs, nframes_t nframes, nf
|
||||||
|
|
||||||
/* fill any excess outputs with the last input */
|
/* fill any excess outputs with the last input */
|
||||||
|
|
||||||
while (n < nbufs && last) {
|
if (last) {
|
||||||
// the dest buffer's offset has already been applied
|
while (n < nbufs) {
|
||||||
memcpy (bufs[n], last, sizeof (Sample) * nframes);
|
// the dest buffer's offset has already been applied
|
||||||
++n;
|
memcpy (bufs[n], last, sizeof (Sample) * nframes);
|
||||||
|
++n;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
while (n < nbufs) {
|
||||||
|
memset (bufs[n], 0, sizeof (Sample) * nframes);
|
||||||
|
++n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue