From 0c1bca807f7b1017415319a251b0126193a7d661 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Mon, 9 Oct 2006 21:48:27 +0000 Subject: VST plugin parameters restore properly git-svn-id: svn://localhost/ardour2/trunk@965 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/vst_plugin.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 02003a4238..800c5a9856 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -244,12 +244,12 @@ VSTPlugin::set_state(const XMLNode& node) for (i = child->properties().begin(); i != child->properties().end(); ++i) { long param; - double val; + float val; sscanf ((*i)->name().c_str(), "param_%ld", ¶m); - sscanf ((*i)->value().c_str(), "%g", &val); + sscanf ((*i)->value().c_str(), "%f", &val); - _plugin->setParameter (_plugin, param, (float) val); + _plugin->setParameter (_plugin, param, val); } return 0; -- cgit v1.2.3