summaryrefslogtreecommitdiff
path: root/libs/ardour/vst_plugin.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-03-25 17:36:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-03-25 17:36:41 +0000
commitc1749dff4314a464f08221362fea4107d2be1b30 (patch)
tree1a85e2ccd4a880a1114af36700e804bfa81266e6 /libs/ardour/vst_plugin.cc
parentdfe26ae407b199b23d010c9cb4f9b616b5fb1e0d (diff)
remove some debug output; always zero VstParameterProperties "flags" member since some plugins do not set any bits it they don't need to
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4890 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r--libs/ardour/vst_plugin.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc
index 7fcb65e445..e4e623c356 100644
--- a/libs/ardour/vst_plugin.cc
+++ b/libs/ardour/vst_plugin.cc
@@ -123,7 +123,7 @@ VSTPlugin::default_value (uint32_t port)
void
VSTPlugin::set_parameter (uint32_t which, float val)
{
- // cerr << "SetParameter for " << name() << endl;
+ // cerr << "1SetParameter for " << name() << endl;
_plugin->setParameter (_plugin, which, val);
// cerr << "signal param change\n";
ParameterChanged (which, val); /* EMIT SIGNAL */
@@ -234,7 +234,7 @@ VSTPlugin::set_state(const XMLNode& node)
sscanf ((*i)->name().c_str(), "param_%ld", &param);
sscanf ((*i)->value().c_str(), "%f", &val);
- // cerr << "setParameter for " << name() << endl;
+ // cerr << "2setParameter for " << name() << endl;
_plugin->setParameter (_plugin, param, val);
}
@@ -248,15 +248,14 @@ int
VSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc) const
{
VstParameterProperties prop;
-
+
desc.min_unbound = false;
desc.max_unbound = false;
+ prop.flags = 0;
//cerr << "Dispatch getParameterProperties for " << name() << endl;
if (_plugin->dispatcher (_plugin, effGetParameterProperties, which, 0, &prop, 0)) {
- /* i have yet to find or hear of a VST plugin that uses this */
-
if (prop.flags & kVstParameterUsesIntegerMinMax) {
desc.lower = prop.minInteger;
desc.upper = prop.maxInteger;
@@ -287,6 +286,7 @@ VSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc)
}
desc.toggled = prop.flags & kVstParameterIsSwitch;
+ // cerr << "parameter " << which << " toggled = " << desc.toggled << " from " << std::hex << prop.flags << " vs. " << kVstParameterIsSwitch << std::dec << endl;
desc.logarithmic = false;
desc.sr_dependent = false;
desc.label = prop.label;