From 011c8a561f6fe0e17502094aa5039510cb8f5a1c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 23 Oct 2013 01:23:21 +0200 Subject: [PATCH] initialize plugin param descriptor struct --- libs/ardour/ardour/plugin.h | 19 +++++++++++++++---- 1 file 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 ();