[SCM] calf/master: + Fluidsynth: pass program changes, silence message_run warning

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


The following commit has been merged in the master branch:
commit 7b2a736740b10aa1c639a325de8af30485a5154f
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Feb 5 00:14:03 2009 +0000

    + Fluidsynth: pass program changes, silence message_run warning

diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index b819ea3..5b26aba 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -64,6 +64,9 @@ public:
     }
     /// Handle control change messages.
     void control_change(int controller, int value);
+    /// Handle program change messages.
+    void program_change(int program);
+
     /// Update variables from control ports.
     void params_changed() {
     }
@@ -78,6 +81,10 @@ public:
     /// DSSI-style configure function for handling string port data
     char *configure(const char *key, const char *value);
     void send_configures(send_configure_iface *sci);
+    uint32_t message_run(const void *valid_inputs, void *output_ports) { 
+        // silence a default printf (which is kind of a warning about unhandled message_run)
+        return 0;
+    }
     ~fluidsynth_audio_module();
 };
 
diff --git a/src/fluidsynth.cpp b/src/fluidsynth.cpp
index 97674db..aa5f798 100644
--- a/src/fluidsynth.cpp
+++ b/src/fluidsynth.cpp
@@ -94,6 +94,11 @@ void fluidsynth_audio_module::control_change(int controller, int value)
     fluid_synth_cc(synth, 0, controller, value);
 }
 
+void fluidsynth_audio_module::program_change(int program)
+{
+    fluid_synth_program_change(synth, 0, program);
+}
+
 uint32_t fluidsynth_audio_module::process(uint32_t offset, uint32_t nsamples, uint32_t inputs_mask, uint32_t outputs_mask)
 {
     fluid_synth_write_float(synth, nsamples, outs[0], offset, 1, outs[1], offset, 1);

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list