summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-11-18 04:58:29 +0000
committerDavid Robillard <d@drobilla.net>2012-11-18 04:58:29 +0000
commita48ca719b7261a078cb6635f950975a38b8605c3 (patch)
treedf15862399cbc33e90e3ffa4d35d76373c6c5a28 /src/server/PortImpl.cpp
parentcfd73dfa220bc7ba3011d3bd9ddd9d5d5e3be079 (diff)
downloadingen-a48ca719b7261a078cb6635f950975a38b8605c3.tar.gz
ingen-a48ca719b7261a078cb6635f950975a38b8605c3.tar.bz2
ingen-a48ca719b7261a078cb6635f950975a38b8605c3.zip
Set atom:supports properties for patch event inputs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4832 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r--src/server/PortImpl.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index dfd24dc0..8dd6d96a 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -77,7 +77,14 @@ PortImpl::PortImpl(BufferFactory& bufs,
set_property(uris.ingen_value, value);
}
if (type == PortType::ATOM) {
- add_property(uris.atom_bufferType, bufs.forge().make_urid(buffer_type));
+ add_property(uris.atom_bufferType,
+ bufs.forge().make_urid(buffer_type));
+ if (block->graph_type() == Ingen::Node::GRAPH) {
+ add_property(uris.atom_supports,
+ bufs.forge().make_urid(uris.midi_MidiEvent));
+ add_property(uris.atom_supports,
+ bufs.forge().make_urid(uris.time_Position));
+ }
}
}