From 6ae2018e81e7e81e4906e62dc6224ad34298d9c2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Nov 2009 20:44:40 +0000 Subject: Object extension. Port resize extension. Sensible extension(s) implementation design for Ingen. Replace string port extension support in Ingen with Object port extension. Implement port resize extension in Ingen. Some test plugins for this stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2260 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/contexts.lv2 | 1 + src/common/interface/DataType.hpp | 20 +++++++++++--------- src/common/object.lv2 | 1 + src/common/resize-port.lv2 | 1 + 4 files changed, 14 insertions(+), 9 deletions(-) create mode 120000 src/common/contexts.lv2 create mode 120000 src/common/object.lv2 create mode 120000 src/common/resize-port.lv2 (limited to 'src/common') diff --git a/src/common/contexts.lv2 b/src/common/contexts.lv2 new file mode 120000 index 00000000..acc4d68c --- /dev/null +++ b/src/common/contexts.lv2 @@ -0,0 +1 @@ +../../../lv2/dev/contexts.lv2 \ No newline at end of file diff --git a/src/common/interface/DataType.hpp b/src/common/interface/DataType.hpp index 4590a9a1..15cdc591 100644 --- a/src/common/interface/DataType.hpp +++ b/src/common/interface/DataType.hpp @@ -39,10 +39,11 @@ public: UNKNOWN = 0, AUDIO = 1, CONTROL = 2, - EVENT = 3, + EVENTS = 3, //MIDI = 4, //OSC = 5, - STRING = 6 + //STRING = 6, + OBJECT = 7 }; DataType(const Raul::URI& uri) @@ -52,10 +53,10 @@ public: _symbol = AUDIO; } else if (uri.str() == type_uri(CONTROL)) { _symbol = CONTROL; - } else if (uri.str() == type_uri(EVENT)) { - _symbol = EVENT; - } else if (uri.str() == type_uri(STRING)) { - _symbol = STRING; + } else if (uri.str() == type_uri(EVENTS)) { + _symbol = EVENTS; + } else if (uri.str() == type_uri(OBJECT)) { + _symbol = OBJECT; } } @@ -73,8 +74,8 @@ public: inline bool is_audio() { return _symbol == AUDIO; } inline bool is_control() { return _symbol == CONTROL; } - inline bool is_event() { return _symbol == EVENT; } - inline bool is_string() { return _symbol == STRING; } + inline bool is_events() { return _symbol == EVENTS; } + inline bool is_object() { return _symbol == OBJECT; } private: @@ -85,7 +86,8 @@ private: case 3: return "lv2ev:EventPort"; case 4: return "lv2ev:EventPort"; // MIDI (no longer used) case 5: return "lv2ev:EventPort"; // OSC (no longer used) - case 6: return "sp:StringPort"; + case 6: return "sp:StringPort"; // String Port (no longer used) + case 7: return "obj:ObjectPort"; default: return ""; } } diff --git a/src/common/object.lv2 b/src/common/object.lv2 new file mode 120000 index 00000000..08017748 --- /dev/null +++ b/src/common/object.lv2 @@ -0,0 +1 @@ +../../../lv2/dev/object.lv2 \ No newline at end of file diff --git a/src/common/resize-port.lv2 b/src/common/resize-port.lv2 new file mode 120000 index 00000000..89bdbf96 --- /dev/null +++ b/src/common/resize-port.lv2 @@ -0,0 +1 @@ +../../../lv2/dev/resize-port.lv2 \ No newline at end of file -- cgit v1.2.1