# HG changeset patch # User Chris Cannam # Date 1406107766 -3600 # Node ID c12cab43141d821eb8442ecccb6a09781db9f220 # Parent 7bb35203a7bd254b08aad37fdc11b67393401ba7 Tidy diff -r 7bb35203a7bd -r c12cab43141d flattendynamics-ladspa.cpp --- a/flattendynamics-ladspa.cpp Tue Jul 22 16:11:02 2014 +0100 +++ b/flattendynamics-ladspa.cpp Wed Jul 23 10:29:26 2014 +0100 @@ -196,13 +196,9 @@ FlattenDynamics::process(int sampleCount) { if (!m_input || !m_output) return; + updateParameters(); - // Adjust gain so that - // * RMS level of the past N seconds is some fixed R, but - // * peak level does not clip - // We aim to take M seconds to move to our target gain - for (int i = 0; i < sampleCount; ++i) { m_output[i] = processSingle(m_input[i]); }