From 54d4fda60d244be23ffa0c848001491818fd86e3 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 29 Mar 2011 15:18:39 +0000 Subject: [PATCH] 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 --- libs/ardour/io.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& 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 */