[SCM] calf/master: + Filterclavier: enable graph

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:03 UTC 2013


The following commit has been merged in the master branch:
commit f1737e6042ff2e5e8050a03d120db3d3a6962852
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Fri Jan 23 20:36:20 2009 +0000

    + Filterclavier: enable graph

diff --git a/src/modules.cpp b/src/modules.cpp
index df9e993..4cc177f 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -127,7 +127,7 @@ CALF_PORT_PROPS(filterclavier) = {
     { biquad_filter_module::mode_6db_bp, 
       biquad_filter_module::mode_12db_lp,
       biquad_filter_module::mode_count - 1,
-                                1, PF_ENUM  | PF_CTL_COMBO, filter_choices, "mode", "Mode" },
+                                1, PF_ENUM  | PF_CTL_COMBO | PF_PROP_GRAPH, filter_choices, "mode", "Mode" },
     { 20,         1,  2000,    20, PF_FLOAT | PF_SCALE_LOG    | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "inertia", "Portamento time"}
 };
 
diff --git a/src/modules_dsp.cpp b/src/modules_dsp.cpp
index 3f01f9b..8e1269a 100644
--- a/src/modules_dsp.cpp
+++ b/src/modules_dsp.cpp
@@ -241,7 +241,7 @@ bool filter_audio_module::get_gridline(int index, int subindex, float &pos, bool
 
 bool filterclavier_audio_module::get_graph(int index, int subindex, float *data, int points, cairo_iface *context)
 {
-    if (!is_active) {
+    if (!is_active || index != par_mode) {
         return false;
     }
     if (!subindex) {

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list