diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-22 16:08:11 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-22 16:08:11 +0000 |
commit | c11c01ef200ce01ec454ff1d8023732d2cd6b06e (patch) | |
tree | 416db0a1caa4800d24226993fc1193db7e93934c /libs/ardour/vst_plugin.cc | |
parent | 1c1b359ff21aac57bd71d291049d657f66cf31f5 (diff) |
remove a bunch of uses of long (mostly replaced by int32_t)
git-svn-id: svn://localhost/ardour2/branches/3.0@7472 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index a270c5ba91..e3953314b6 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -159,7 +159,7 @@ VSTPlugin::get_state() /* fetch the current chunk */ guchar* data; - long data_size; + int32_t data_size; if ((data_size = _plugin->dispatcher (_plugin, 23 /* effGetChunk */, 0, 0, &data, false)) == 0) { return *root; @@ -179,7 +179,7 @@ VSTPlugin::get_state() XMLNode* parameters = new XMLNode ("parameters"); - for (long n = 0; n < _plugin->numParams; ++n) { + for (int32_t n = 0; n < _plugin->numParams; ++n) { char index[64]; char val[32]; snprintf (index, sizeof (index), "param_%ld", n); @@ -233,10 +233,10 @@ VSTPlugin::set_state(const XMLNode& node, int) XMLPropertyList::const_iterator i; for (i = child->properties().begin(); i != child->properties().end(); ++i) { - long param; + int32_t param; float val; - sscanf ((*i)->name().c_str(), "param_%ld", ¶m); + sscanf ((*i)->name().c_str(), "param_%d", ¶m); sscanf ((*i)->value().c_str(), "%f", &val); _plugin->setParameter (_plugin, param, val); |