From 17cd3853e0665059d7ae01171594965979957707 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Feb 2020 22:01:42 +0100 Subject: [PATCH] Fix initial audible noise on muted or silenced tracks When loading a session with muted tracks, those tracks were not initially muted, but ardour only faded them out. The same happened to sends, and also tracks with non unity fader: an initial fade from unity to target gain was done. Now this send and deliveries always fade-in (like default Amp does). --- libs/ardour/delivery.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index 32f2f14bdb..b278b04c8b 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -60,7 +60,7 @@ Delivery::Delivery (Session& s, boost::shared_ptr io, boost::shared_ptr(), (role_requires_output_ports (r) ? io : boost::shared_ptr()), name) , _role (r) , _output_buffers (new BufferSet()) - , _current_gain (GAIN_COEFF_UNITY) + , _current_gain (GAIN_COEFF_ZERO) , _no_outs_cuz_we_no_monitor (false) , _mute_master (mm) , _no_panner_reset (false) @@ -84,7 +84,7 @@ Delivery::Delivery (Session& s, boost::shared_ptr pannable, boost::sha : IOProcessor(s, false, (role_requires_output_ports (r) ? true : false), name, "", DataType::AUDIO, (r == Send)) , _role (r) , _output_buffers (new BufferSet()) - , _current_gain (GAIN_COEFF_UNITY) + , _current_gain (GAIN_COEFF_ZERO) , _no_outs_cuz_we_no_monitor (false) , _mute_master (mm) , _no_panner_reset (false)