[SCM] calf/master: Fix waveform graph in Calf Organ.

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


The following commit has been merged in the master branch:
commit ce80af4b4a90d6dc644f1eaf1cf960e9a1f868b6
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sat Apr 10 21:55:39 2010 +0100

    Fix waveform graph in Calf Organ.
    
    Ensure the organ_audio_module::get_graph method has a matching prototype
    so that it implements the corresponding method of line_graph_iface.

diff --git a/src/calf/organ.h b/src/calf/organ.h
index 721157d..efb3913 100644
--- a/src/calf/organ.h
+++ b/src/calf/organ.h
@@ -315,7 +315,7 @@ public:
     /// Practically all the stuff here is noisy
     bool is_noisy(int param_no) { return true; }
     void execute(int cmd_no);
-    bool get_graph(int index, int subindex, float *data, int points, cairo_iface *context);
+    bool get_graph(int index, int subindex, float *data, int points, cairo_iface *context) const;
     char *configure(const char *key, const char *value);
     void send_configures(send_configure_iface *);
     uint32_t message_run(const void *valid_inputs, void *output_ports);
diff --git a/src/organ.cpp b/src/organ.cpp
index 34aa7d5..b28cbaa 100644
--- a/src/organ.cpp
+++ b/src/organ.cpp
@@ -73,7 +73,7 @@ void organ_audio_module::params_changed() {
     update_params();
 }
 
-bool organ_audio_module::get_graph(int index, int subindex, float *data, int points, cairo_iface *context)
+bool organ_audio_module::get_graph(int index, int subindex, float *data, int points, cairo_iface *context) const
 {
     if (index == par_master) {
         organ_voice_base::precalculate_waves(progress_report);

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list