summaryrefslogtreecommitdiffstats
path: root/src/server/ArcImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-11 04:47:21 +0000
committerDavid Robillard <d@drobilla.net>2013-01-11 04:47:21 +0000
commit10e9a3a800a35916872abf9e354be4c554338e4e (patch)
treed6be3ce7993f5d8efd525629fd321b32a6341633 /src/server/ArcImpl.cpp
parent684eaf6b58e41f6758b160b882a6313faf0cff18 (diff)
downloadingen-10e9a3a800a35916872abf9e354be4c554338e4e.tar.gz
ingen-10e9a3a800a35916872abf9e354be4c554338e4e.tar.bz2
ingen-10e9a3a800a35916872abf9e354be4c554338e4e.zip
Use type safe enumerations.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4918 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ArcImpl.cpp')
-rw-r--r--src/server/ArcImpl.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/server/ArcImpl.cpp b/src/server/ArcImpl.cpp
index debd2c1e..eea8ddcb 100644
--- a/src/server/ArcImpl.cpp
+++ b/src/server/ArcImpl.cpp
@@ -78,28 +78,28 @@ ArcImpl::can_connect(const OutputPort* src, const InputPort* dst)
const Ingen::URIs& uris = src->bufs().uris();
return (
// (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)))
+ ( (src->is_a(PortType::ID::CONTROL) ||
+ src->is_a(PortType::ID::AUDIO) ||
+ src->is_a(PortType::ID::CV))
+ && (dst->is_a(PortType::ID::CONTROL)
+ || dst->is_a(PortType::ID::AUDIO)
+ || dst->is_a(PortType::ID::CV)))
// Equal types
|| (src->type() == dst->type() &&
src->buffer_type() == dst->buffer_type())
// Control => atom:Float Value
- || (src->is_a(PortType::CONTROL) && dst->supports(uris.atom_Float))
+ || (src->is_a(PortType::ID::CONTROL) && dst->supports(uris.atom_Float))
// Audio => atom:Sound Value
- || (src->is_a(PortType::AUDIO) && dst->supports(uris.atom_Sound))
+ || (src->is_a(PortType::ID::AUDIO) && dst->supports(uris.atom_Sound))
// atom:Float Value => Control
- || (src->supports(uris.atom_Float) && dst->is_a(PortType::CONTROL))
+ || (src->supports(uris.atom_Float) && dst->is_a(PortType::ID::CONTROL))
// atom:Sound Value => Audio
- || (src->supports(uris.atom_Sound) && dst->is_a(PortType::AUDIO)));
+ || (src->supports(uris.atom_Sound) && dst->is_a(PortType::ID::AUDIO)));
}
} // namespace Server