summaryrefslogtreecommitdiffstats
path: root/src/server/PortType.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-11 05:22:08 +0000
committerDavid Robillard <d@drobilla.net>2012-03-11 05:22:08 +0000
commit4c299323440923891b9c583a354116000eb143cc (patch)
treef2873fdd9849561608b7eebbfad89c04d56ba58e /src/server/PortType.hpp
parentc2ea4e3c59ce8c06066780d67237fdb07255c89e (diff)
downloadingen-4c299323440923891b9c583a354116000eb143cc.tar.gz
ingen-4c299323440923891b9c583a354116000eb143cc.tar.bz2
ingen-4c299323440923891b9c583a354116000eb143cc.zip
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
Diffstat (limited to 'src/server/PortType.hpp')
-rw-r--r--src/server/PortType.hpp11
1 files changed, 8 insertions, 3 deletions
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"