From b77bc1e6e272a227794013ce05bf07760c1fb845 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 23 Jan 2008 05:01:08 +0000 Subject: Working Jack MIDI -> generic event port input. git-svn-id: http://svn.drobilla.net/lad/ingen@1098 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/DataType.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/interface/DataType.hpp b/src/common/interface/DataType.hpp index 7ce76be1..d6fe7440 100644 --- a/src/common/interface/DataType.hpp +++ b/src/common/interface/DataType.hpp @@ -27,6 +27,8 @@ namespace Shared { * This type refers to the type of the entire buffer, mirroring LV2, * e.g. :AudioPort and :ControlPort both are really 32-bit floating point, * but they are different port types. + * + * FIXME: Event/MIDI/OSC kludges. */ class DataType { public: @@ -45,7 +47,8 @@ public: _symbol = AUDIO; } else if (uri == type_uri(CONTROL)) { _symbol = CONTROL; - } else if (uri == type_uri(EVENT)) { + } else if (uri == type_uri(EVENT) + || (uri == "ingen:MIDIPort") || uri == "ingen:OSCPort") { _symbol = EVENT; } } @@ -72,6 +75,8 @@ private: case 1: return "ingen:AudioPort"; case 2: return "ingen:ControlPort"; case 3: return "ingen:EventPort"; + case 4: return "ingen:EventPort"; // MIDI + case 5: return "ingen:EventPort"; // OSC default: return ""; } } -- cgit v1.2.1