[SCM] calf/master: Latest changes.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:37:57 UTC 2013
The following commit has been merged in the master branch:
commit f91c7ca68ecb682adc86a9f8e44e8948995b2462
Author: Thor Harald Johansen <thor at thor-pc.(none)>
Date: Thu Oct 30 21:11:55 2008 +0100
Latest changes.
diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index 8ea9bd8..84ed443 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -49,9 +49,8 @@ public:
*params[param_compression] = aim;
while(offset < numsamples) {
- for(int channel = 0; channel < 2; channel++) {
- float sample = ins[channel][offset];
- float asample = fabs(sample);
+ float asample = std::max(fabs(ins[0][offset]), fabs(ins[1][offset]));
+ for(int channel = 0; channel < in_count; channel++) {
if(asample > threshold) {
target = asample - threshold;
target /= ratio;
@@ -61,9 +60,7 @@ public:
target = 1;
}
- sample *= aim;
-
- outs[channel][offset] = sample;
+ outs[channel][offset] = ins[channel][offset] * aim;
}
aim += (target - aim) * 0.0008;
diff --git a/src/modules.cpp b/src/modules.cpp
index d349b51..df26038 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -179,7 +179,7 @@ parameter_properties compressor_audio_module::param_props[] = {
synth::ladspa_plugin_info compressor_audio_module::plugin_info = { 0x8502, "Compressor", "Calf Compressor", "Thor Harald Johansen", synth::calf_copyright_info, "CompressorPlugin" };
-const char *compressor_audio_module::port_names[] = {"In", "Out"};
+const char *compressor_audio_module::port_names[] = {"In L", "In R", "Out L", "Out R"};
////////////////////////////////////////////////////////////////////////////
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list