make sure declicking fades reach their target, from svn 9086

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9228 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Ben Loftis 2011-03-29 15:18:39 +00:00
parent 032e2df8a1
commit 54d4fda60d

View file

@ -260,7 +260,7 @@ IO::apply_declick (vector<Sample *>& bufs, uint32_t nbufs, nframes_t nframes, ga
if (nframes == 0) return;
fractional_shift = -1.0/declick;
fractional_shift = -1.0/(declick-1);
if (target < initial) {
/* fade out: remove more and more of delta from initial */