summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/plugin.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-10-23 01:23:21 +0200
committerRobin Gareus <robin@gareus.org>2013-10-23 01:23:21 +0200
commit011c8a561f6fe0e17502094aa5039510cb8f5a1c (patch)
tree41c5e393f87073729d2cf08568595288fd581710 /libs/ardour/ardour/plugin.h
parent61e66bb7631fc070a629d83e91855f58d7fb2489 (diff)
initialize plugin param descriptor struct
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r--libs/ardour/ardour/plugin.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index 8bdb96bdd0..1bc7dc5afd 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -96,12 +96,23 @@ class Plugin : public PBD::StatefulDestructible, public Latent
struct ParameterDescriptor {
- /* XXX: it would probably be nice if this initialised everything */
ParameterDescriptor ()
- : enumeration (false)
+ : integer_step(false)
+ , toggled (false)
+ , logarithmic (false)
+ , sr_dependent (false)
+ , lower (0)
+ , upper (0)
+ , step (0)
+ , smallstep (0)
+ , largestep (0)
+ , min_unbound (0)
+ , max_unbound (0)
+ , enumeration (false)
+ , midinote(false)
{}
- /* essentially a union of LADSPA and VST info */
+ /* essentially a union of LADSPA, VST and LV2 info */
bool integer_step;
bool toggled;
@@ -116,7 +127,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
bool min_unbound;
bool max_unbound;
bool enumeration;
- bool midinote;
+ bool midinote; ///< only used if integer_step is also true
};
XMLNode& get_state ();