From 6ccf29fb538405b51ca745e2b8efe24e4c79365d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 24 Jan 2009 16:43:23 +0000 Subject: [PATCH] Update actual gain when declick has been applied. git-svn-id: svn://localhost/ardour2/branches/3.0@4440 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/io.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 0857fad94d..af4127c080 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -261,8 +261,10 @@ IO::deliver_output (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, } - if (dg != _gain || dg != 1.0) + if (dg != _gain || dg != 1.0) { Amp::run_in_place(bufs, nframes, _gain, dg, _phase_invert); + _gain = dg; + } } // Use the panner to distribute audio to output port buffers