diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-08-09 15:47:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-08-09 15:47:16 +0000 |
commit | 15f58343f6425891a570131b1b8f89bac4e51ca6 (patch) | |
tree | ecf0bd8da140d8cfc33e5c6daed9aabd3fb222cb | |
parent | 5bfa705ff7c601cab13bd4a17997e7376d6c8f96 (diff) |
use new floateq() to check VST plugin parameter equality
git-svn-id: svn://localhost/ardour2/branches/3.0@13117 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/vst_plugin.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 3a77fc4d9f..f1503c30e8 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -23,6 +23,7 @@ #include <glibmm/fileutils.h> #include <glibmm/miscutils.h> +#include "pbd/floating.h" #include "pbd/locale_guard.h" #include "pbd/pathscanner.h" @@ -105,7 +106,7 @@ VSTPlugin::set_parameter (uint32_t which, float val) cerr << name() << " setting parameter #" << which << " to " << val << " current " << v << " == ? " << (v == val) << " delta " << std::setprecision(15) << (v - val) << endl; - if (get_parameter (which) == val) { + if (PBD::floateq (get_parameter (which), val, 2)) { return; } |