[SCM] calf/master: First working compressor

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:52 UTC 2013


The following commit has been merged in the master branch:
commit 1796d959bfe2aa19d7d8c573519a252d7fd66a22
Author: Thor Harald Johansen <thor at thor-pc.(none)>
Date:   Wed Oct 29 23:10:50 2008 +0100

    First working compressor

diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index 0231394..5b91780 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -38,7 +38,7 @@ public:
     uint32_t srate;
     static parameter_properties param_props[];
     uint32_t process(uint32_t offset, uint32_t numsamples, uint32_t inputs_mask, uint32_t outputs_mask) {
-        return 0;
+        return numsamples + offset;
     }
 
     static const char *get_name() { return "compressor"; }
diff --git a/src/modules.cpp b/src/modules.cpp
index a00d8de..db3e745 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -178,11 +178,13 @@ parameter_properties multichorus_audio_module::param_props[] = {
 synth::ladspa_plugin_info multichorus_audio_module::plugin_info = { 0x8501, "MultiChorus", "Calf MultiChorus", "Krzysztof Foltman", synth::calf_copyright_info, "ChorusPlugin" };
 
 parameter_properties compressor_audio_module::param_props[] = {
-    { 1,      0, 1,    0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_DB, NULL, "threshold", "Threshold" }
+    { 1,      0, 1,    0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "threshold", "Threshold" }
 };
 
 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"};
+
 ////////////////////////////////////////////////////////////////////////////
 
 template<class Module>

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list