diff options
Diffstat (limited to 'src/common/interface')
-rw-r--r-- | src/common/interface/DataType.hpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/common/interface/DataType.hpp b/src/common/interface/DataType.hpp index aae7f52a..4590a9a1 100644 --- a/src/common/interface/DataType.hpp +++ b/src/common/interface/DataType.hpp @@ -39,7 +39,10 @@ public: UNKNOWN = 0, AUDIO = 1, CONTROL = 2, - EVENT = 3 + EVENT = 3, + //MIDI = 4, + //OSC = 5, + STRING = 6 }; DataType(const Raul::URI& uri) @@ -49,8 +52,10 @@ public: _symbol = AUDIO; } else if (uri.str() == type_uri(CONTROL)) { _symbol = CONTROL; - } else if (uri.str() == type_uri(EVENT) || uri.str() == "lv2ev:EventPort") { + } else if (uri.str() == type_uri(EVENT)) { _symbol = EVENT; + } else if (uri.str() == type_uri(STRING)) { + _symbol = STRING; } } @@ -69,6 +74,7 @@ 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; } private: @@ -77,8 +83,9 @@ private: case 1: return "lv2:AudioPort"; case 2: return "lv2:ControlPort"; case 3: return "lv2ev:EventPort"; - case 4: return "lv2ev:EventPort"; // MIDI - case 5: return "lv2ev:EventPort"; // OSC + case 4: return "lv2ev:EventPort"; // MIDI (no longer used) + case 5: return "lv2ev:EventPort"; // OSC (no longer used) + case 6: return "sp:StringPort"; default: return ""; } } |