diff options
author | Ben Loftis <ben@glw.com> | 2011-03-29 15:18:39 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2011-03-29 15:18:39 +0000 |
commit | 54d4fda60d244be23ffa0c848001491818fd86e3 (patch) | |
tree | 165d210802c934ccd4c45a3d743e3e3ce2f4cd27 /libs | |
parent | 032e2df8a1da3ea91abb852ba0671cebcffe374b (diff) |
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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/io.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 21f51e68fe..f41cf6c691 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -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 */ |