Mercurial > hg > flattendynamics
changeset 16:c12cab43141d
Tidy
author | Chris Cannam |
---|---|
date | Wed, 23 Jul 2014 10:29:26 +0100 |
parents | 7bb35203a7bd |
children | ca4e31d86436 |
files | flattendynamics-ladspa.cpp |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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]); }