From f2c45c3f5b1f6c06d351ed91223343cd3a69ab4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 May 2009 02:48:23 +0000 Subject: Fix URIs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2018 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/InternalPlugin.hpp | 1 - src/engine/PortImpl.cpp | 10 ++-------- src/engine/events/SetMetadataEvent.cpp | 2 ++ 3 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src/engine') diff --git a/src/engine/InternalPlugin.hpp b/src/engine/InternalPlugin.hpp index abb49cbd..3c0583cd 100644 --- a/src/engine/InternalPlugin.hpp +++ b/src/engine/InternalPlugin.hpp @@ -32,7 +32,6 @@ #include #include "PluginImpl.hpp" -#define NS_INGEN "http://drobilla.net/ns/ingen#" #define NS_INTERNALS "http://drobilla.net/ns/ingen-internals#" namespace Ingen { diff --git a/src/engine/PortImpl.cpp b/src/engine/PortImpl.cpp index c81e797a..913bbc2e 100644 --- a/src/engine/PortImpl.cpp +++ b/src/engine/PortImpl.cpp @@ -66,16 +66,10 @@ PortImpl::PortImpl(NodeImpl* const node, else _polyphonic = true; - if (type == DataType::AUDIO) - add_property("rdf:type", Atom(Atom::URI, "lv2:AudioPort")); + add_property("rdf:type", Atom(Atom::URI, type.uri())); - if (type == DataType::CONTROL) - add_property("rdf:type", Atom(Atom::URI, "lv2:ControlPort")); - - if (type == DataType::EVENT) { - add_property("rdf:type", Atom(Atom::URI, "lv2ev:EventPort")); + if (type == DataType::EVENT) _broadcast = true; // send activity blips - } assert(_buffers->size() > 0); } diff --git a/src/engine/events/SetMetadataEvent.cpp b/src/engine/events/SetMetadataEvent.cpp index 482656ca..00db9161 100644 --- a/src/engine/events/SetMetadataEvent.cpp +++ b/src/engine/events/SetMetadataEvent.cpp @@ -53,6 +53,8 @@ SetMetadataEvent::SetMetadataEvent( , _is_meta(meta) , _success(false) { + cerr << "SET " << subject << " : " << key << " = " << value << endl; + assert(value.type() != Atom::URI || strcmp(value.get_uri(), "lv2:ControlPort")); } -- cgit v1.2.1