[SCM] calf/master: + Preset system: do not produce float values for string ports in presets

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:43 UTC 2013


The following commit has been merged in the master branch:
commit 099c0a7ebdfaf6490d2ddfae5a95b6b2a3fe496a
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Nov 30 21:55:06 2008 +0000

    + Preset system: do not produce float values for string ports in presets

diff --git a/src/preset.cpp b/src/preset.cpp
index 4de051f..02fb383 100644
--- a/src/preset.cpp
+++ b/src/preset.cpp
@@ -99,6 +99,8 @@ void plugin_preset::get_from(plugin_ctl_iface *plugin)
 {
     int count = plugin->get_param_count();
     for (int i = 0; i < count; i++) {
+        if ((plugin->get_param_props(i)->flags & PF_TYPEMASK) >= PF_STRING)
+            continue;
         param_names.push_back(plugin->get_param_props(i)->short_name);
         values.push_back(plugin->get_param_value(i));
     }

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list