From 0020d9a6726a8bd06e9b2f329c0f507b77b89433 Mon Sep 17 00:00:00 2001 From: Harry van Haaren Date: Tue, 20 Dec 2016 16:34:00 +0000 Subject: [PATCH] fix #125: track volume fader != silence bug fixed Fixes dsp bug in how the master diff was calculated, which left some room for error and hence some just-not-silence levels sneak through the fader. Increase the calculation threshold to be more sensitive, so there is now 10x less creep. Testing here proved that it never bleeds audio anymore --- src/trackoutput.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trackoutput.cxx b/src/trackoutput.cxx index 55a321d..b9fe8f7 100644 --- a/src/trackoutput.cxx +++ b/src/trackoutput.cxx @@ -107,7 +107,7 @@ void TrackOutput::setSend( int send, float value ) void TrackOutput::process(unsigned int nframes, Buffers* buffers) { //compute master volume lag; - if(fabs(_toMaster-_toMasterLag)>=fabs(_toMasterDiff/10.0)) + if(fabs(_toMaster-_toMasterLag)>=fabs(_toMasterDiff/100.0)) _toMasterLag+=_toMasterDiff/10.0; // get & zero track buffer float* trackBuffer = buffers->audio[Buffers::RETURN_TRACK_0 + track];