summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/plugin.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-10-31 23:48:27 -0400
committerDavid Robillard <d@drobilla.net>2014-11-02 02:10:24 -0500
commit6dfb11c2d08201f1a27818955707590b762f5a40 (patch)
treea0ba48815d3a40bb8491b940d97d3c2330cb19f3 /libs/ardour/ardour/plugin.h
parentbd6ba1717ef43bd4399b96a03bbb576eab55b9a2 (diff)
Move ParameterDescriptor from Plugin to its own header.
This fixes circular dependency issues that arise when using ParameterDescriptor more widely.
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r--libs/ardour/ardour/plugin.h42
1 files changed, 1 insertions, 41 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index f1a54b073a..dc7dbf68e1 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -32,6 +32,7 @@
#include "ardour/latent.h"
#include "ardour/libardour_visibility.h"
#include "ardour/midi_state_tracker.h"
+#include "ardour/parameter_descriptor.h"
#include "ardour/plugin_insert.h"
#include "ardour/types.h"
#include "ardour/variant.h"
@@ -95,47 +96,6 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public Latent
Plugin (const Plugin&);
virtual ~Plugin ();
- typedef std::map<const std::string, const float> ScalePoints;
-
- struct ParameterDescriptor {
-
- ParameterDescriptor ()
- : 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, VST and LV2 info */
-
- bool integer_step;
- bool toggled;
- bool logarithmic;
- bool sr_dependent;
- std::string label;
- float lower; ///< if this is a frequency, it will be in Hz (not a fraction of the sample rate)
- float upper; ///< if this is a frequency, it will be in Hz (not a fraction of the sample rate)
- float step;
- float smallstep;
- float largestep;
- bool min_unbound;
- bool max_unbound;
- bool enumeration;
- bool midinote; ///< only used if integer_step is also true
- uint32_t key; ///< for properties
- Variant::Type datatype; ///< for properties
- boost::shared_ptr<ScalePoints> scale_points;
- };
-
XMLNode& get_state ();
virtual int set_state (const XMLNode &, int version);