diff options
author | David Robillard <d@drobilla.net> | 2012-08-16 07:28:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-16 07:28:26 +0000 |
commit | c9594c15a7bd646006040101fcef3e7b95c6c279 (patch) | |
tree | 7f308f449c9987b92ac74a6457d90848a0e4a85a /src/server | |
parent | 3b26abedb5bc99eaa724f02aab6697d37acb039b (diff) | |
download | ingen-c9594c15a7bd646006040101fcef3e7b95c6c279.tar.gz ingen-c9594c15a7bd646006040101fcef3e7b95c6c279.tar.bz2 ingen-c9594c15a7bd646006040101fcef3e7b95c6c279.zip |
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
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/PortImpl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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() |