summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-06-09 02:27:16 +0000
committerDavid Robillard <d@drobilla.net>2013-06-09 02:27:16 +0000
commit2a37fbef6832aebfcb22feefa0bb05104eb6f018 (patch)
tree5e161bce0a7e0e6c5b66659693a139bff8520ec2 /src/server/PortImpl.hpp
parent947b2ebaee2a4a6e5b59ec90856dd66eae63b3f2 (diff)
downloadingen-2a37fbef6832aebfcb22feefa0bb05104eb6f018.tar.gz
ingen-2a37fbef6832aebfcb22feefa0bb05104eb6f018.tar.bz2
ingen-2a37fbef6832aebfcb22feefa0bb05104eb6f018.zip
Inherit certain properties from ports connected to patch ports.
This is a bit too hard-edged at present, but does the right thing when building a patch from scratch at least. Something needs to be done about removing the properties, but this is hard for outputs since the arcs aren't keyed that way. The main problem here is that Ardour barfs on plugins with MIDI input for audio tracks, so if you *ever* connect the control input to a MIDI anything, it will stick and not work in an Ardour audio track. Maybe it should be just implemented for inputs as a stop gap... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5136 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.hpp')
-rw-r--r--src/server/PortImpl.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index c980a134..8e6c8e77 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -122,6 +122,16 @@ public:
void activate(BufferFactory& bufs);
void deactivate();
+ /**
+ Inherit any properties from a connected neighbour.
+
+ This is used for Graph ports, so e.g. a control input has the range of
+ all the ports it is connected to.
+ */
+ virtual void inherit_neighbour(const PortImpl* port,
+ Resource::Properties& remove,
+ Resource::Properties& add) {}
+
virtual void connect_buffers();
virtual void recycle_buffers();