summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/lv2_plugin.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-25 04:16:42 +0000
committerDavid Robillard <d@drobilla.net>2012-02-25 04:16:42 +0000
commitf122504784e8e38be7d7df87af3f2a7044a7f14c (patch)
tree7c172067c6d9979db7348c8b42a1ccc897a3161b /libs/ardour/ardour/lv2_plugin.h
parent4f96a1006bbee939e258c844e49d41e207184b48 (diff)
Support LV2 atom sequence ports alongside old event ports.
git-svn-id: svn://localhost/ardour2/branches/3.0@11517 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r--libs/ardour/ardour/lv2_plugin.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h
index 874baef533..77ad8ead24 100644
--- a/libs/ardour/ardour/lv2_plugin.h
+++ b/libs/ardour/ardour/lv2_plugin.h
@@ -98,7 +98,10 @@ class LV2Plugin : public ARDOUR::Plugin
boost::shared_ptr<Plugin::ScalePoints>
get_scale_points(uint32_t port_index) const;
- static uint32_t midi_event_type () { return _midi_event_type; }
+ /// Return the URID of midi:MidiEvent
+ static uint32_t midi_event_type (bool event_api) {
+ return event_api ? _midi_event_type_ev : _midi_event_type;
+ }
void set_insert_info(const PluginInsert* insert);
@@ -125,9 +128,10 @@ class LV2Plugin : public ARDOUR::Plugin
typedef enum {
PORT_INPUT = 1,
PORT_OUTPUT = 1 << 1,
- PORT_EVENT = 1 << 2,
- PORT_AUDIO = 1 << 3,
- PORT_CONTROL = 1 << 4
+ PORT_AUDIO = 1 << 2,
+ PORT_CONTROL = 1 << 3,
+ PORT_EVENT = 1 << 4,
+ PORT_MESSAGE = 1 << 5
} PortFlag;
typedef unsigned PortFlags;
@@ -150,7 +154,9 @@ class LV2Plugin : public ARDOUR::Plugin
bool _has_state_interface;
static URIMap _uri_map;
+ static uint32_t _midi_event_type_ev;
static uint32_t _midi_event_type;
+ static uint32_t _sequence_type;
static uint32_t _state_path_type;
const std::string plugin_dir () const;