13
0

VST plugin parameters restore properly

git-svn-id: svn://localhost/ardour2/trunk@965 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2006-10-09 21:48:27 +00:00
parent cdbcb1a4ea
commit 0c1bca807f

View File

@ -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", &param);
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;