From 4c299323440923891b9c583a354116000eb143cc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Mar 2012 05:22:08 +0000 Subject: Implement cv:CVPort (fix #790). Not well-tested, but at least works somewhat. Use new style LV2 URI defines (and fix invalid atom URIs). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4050 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PortType.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/server/PortType.hpp') diff --git a/src/server/PortType.hpp b/src/server/PortType.hpp index 1fc9f995..b8fd747e 100644 --- a/src/server/PortType.hpp +++ b/src/server/PortType.hpp @@ -34,9 +34,10 @@ public: UNKNOWN = 0, AUDIO = 1, CONTROL = 2, - EVENTS = 3, - VALUE = 4, - MESSAGE = 5, + CV = 3, + EVENTS = 4, + VALUE = 5, + MESSAGE = 6, }; PortType(const Raul::URI& uri) @@ -46,6 +47,8 @@ public: _symbol = AUDIO; } else if (uri == type_uri(CONTROL)) { _symbol = CONTROL; + } else if (uri == type_uri(CV)) { + _symbol = CV; } else if (uri == type_uri(EVENTS)) { _symbol = EVENTS; } else if (uri == type_uri(VALUE)) { @@ -70,6 +73,7 @@ public: inline bool is_audio() { return _symbol == AUDIO; } inline bool is_control() { return _symbol == CONTROL; } + inline bool is_cv() { return _symbol == CV; } inline bool is_events() { return _symbol == EVENTS; } inline bool is_value() { return _symbol == VALUE; } inline bool is_message() { return _symbol == MESSAGE; } @@ -81,6 +85,7 @@ private: "http://drobilla.net/ns/ingen#nil", "http://lv2plug.in/ns/lv2core#AudioPort", "http://lv2plug.in/ns/lv2core#ControlPort", + "http://lv2plug.in/ns/ext/cv-port#CVPort", "http://lv2plug.in/ns/ext/event#EventPort", "http://lv2plug.in/ns/ext/atom#ValuePort", "http://lv2plug.in/ns/ext/atom#MessagePort" -- cgit v1.2.1