[SCM] calf/master: Foo
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:37:56 UTC 2013
The following commit has been merged in the master branch:
commit 066d49581565a10012960677ea709537396b6e77
Author: Thor Harald Johansen <thor at thor-pc.(none)>
Date: Thu Oct 30 20:02:24 2008 +0100
Foo
diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index 55631a1..8ea9bd8 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -28,7 +28,7 @@ namespace synth {
class compressor_audio_module: public null_audio_module {
public:
enum { in_count = 2, out_count = 2, support_midi = false, rt_capable = true };
- enum { param_threshold, param_ratio, param_count };
+ enum { param_threshold, param_ratio, param_compression, param_count };
static const char *port_names[in_count + out_count];
static synth::ladspa_plugin_info plugin_info;
@@ -45,6 +45,9 @@ public:
numsamples += offset;
float threshold = *params[param_threshold];
float ratio = *params[param_ratio];
+
+ *params[param_compression] = aim;
+
while(offset < numsamples) {
for(int channel = 0; channel < 2; channel++) {
float sample = ins[channel][offset];
diff --git a/src/modules.cpp b/src/modules.cpp
index 32f6bfc..d349b51 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -174,6 +174,7 @@ synth::ladspa_plugin_info multichorus_audio_module::plugin_info = { 0x8501, "Mul
parameter_properties compressor_audio_module::param_props[] = {
{ 1, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "threshold", "Threshold" },
{ 1, 1, 100, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_COEF, NULL, "ratio", "Ratio" },
+ { 0, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_FADER | PF_UNIT_DB | PF_PROP_OUTPUT | PF_PROP_OPTIONAL, NULL, "compression", "Compression" }
};
synth::ladspa_plugin_info compressor_audio_module::plugin_info = { 0x8502, "Compressor", "Calf Compressor", "Thor Harald Johansen", synth::calf_copyright_info, "CompressorPlugin" };
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list