From c9594c15a7bd646006040101fcef3e7b95c6c279 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 16 Aug 2012 07:28:26 +0000 Subject: Set initial ingen:value property for ports with a value. Only set atom:bufferType for AtomPorts. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4712 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PortImpl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index 3f265636..698cd458 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -71,9 +71,14 @@ PortImpl::PortImpl(BufferFactory& bufs, set_type(type, buffer_type); - add_property(uris.atom_bufferType, bufs.forge().make_urid(buffer_type)); add_property(uris.rdf_type, bufs.forge().alloc_uri(type.uri())); set_property(uris.lv2_index, bufs.forge().make((int32_t)index)); + if (value.is_valid()) { + set_property(uris.ingen_value, value); + } + if (type == PortType::ATOM) { + add_property(uris.atom_bufferType, bufs.forge().make_urid(buffer_type)); + } } PortImpl::~PortImpl() -- cgit v1.2.1