VST plugin parameters restore properly
git-svn-id: svn://localhost/ardour2/trunk@965 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cdbcb1a4ea
commit
0c1bca807f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user