From 7835b3d8c9b5b4a6f4959f56083d62826e6f7b8e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 12 Mar 2012 00:42:24 +0000 Subject: Allow control and audio ports to be connected to CV ports. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4052 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ConnectionImpl.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/server/ConnectionImpl.cpp') diff --git a/src/server/ConnectionImpl.cpp b/src/server/ConnectionImpl.cpp index a0205627..d752d4b2 100644 --- a/src/server/ConnectionImpl.cpp +++ b/src/server/ConnectionImpl.cpp @@ -162,9 +162,13 @@ ConnectionImpl::can_connect(const OutputPort* src, const InputPort* dst) { const Ingen::Shared::URIs& uris = src->bufs().uris(); return ( - // (Audio | Control) => (Audio | Control) - ( (src->is_a(PortType::CONTROL) || src->is_a(PortType::AUDIO)) - && (dst->is_a(PortType::CONTROL) || dst->is_a(PortType::AUDIO))) + // (Audio | Control | CV) => (Audio | Control | CV) + ( (src->is_a(PortType::CONTROL) || + src->is_a(PortType::AUDIO) || + src->is_a(PortType::CV)) + && (dst->is_a(PortType::CONTROL) + || dst->is_a(PortType::AUDIO) + || dst->is_a(PortType::CV))) // (Events | Message) => (Events | Message) || ( (src->is_a(PortType::EVENTS) || src->is_a(PortType::MESSAGE)) -- cgit v1.2.1