diff options
author | David Robillard <d@drobilla.net> | 2009-11-18 00:38:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-11-18 00:38:45 +0000 |
commit | 6ec390d53a3dbea90e7308c9e40e03266f5d5127 (patch) | |
tree | 964973527778b5b2b28f8a5ebf63057fb7651d36 /src/engine/InputPort.cpp | |
parent | 1a725c0811fd15900464e1eff429c6ead90805d4 (diff) | |
download | ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.tar.gz ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.tar.bz2 ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.zip |
Rename DataType to PortType (since that's what it really means).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2273 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/InputPort.cpp')
-rw-r--r-- | src/engine/InputPort.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/InputPort.cpp b/src/engine/InputPort.cpp index 4182e862..484e8b53 100644 --- a/src/engine/InputPort.cpp +++ b/src/engine/InputPort.cpp @@ -42,7 +42,7 @@ InputPort::InputPort(BufferFactory& bufs, const string& name, uint32_t index, uint32_t poly, - DataType type, + PortType type, const Raul::Atom& value, size_t buffer_size) : PortImpl(bufs, parent, name, index, poly, type, value, buffer_size) @@ -58,8 +58,8 @@ InputPort::can_direct() const return _connections.size() == 1 && _connections.front()->src_port()->poly() == poly() && (_connections.front()->src_port()->type() == type() - || (_connections.front()->src_port()->type() == DataType::AUDIO - && type() == DataType::CONTROL)); + || (_connections.front()->src_port()->type() == PortType::AUDIO + && type() == PortType::CONTROL)); } @@ -145,7 +145,7 @@ InputPort::add_connection(Connections::Node* const c) connect_buffers(); // Automatically broadcast connected control inputs - if (_type == DataType::CONTROL) + if (_type == PortType::CONTROL) _broadcast = true; } @@ -173,7 +173,7 @@ InputPort::remove_connection(const OutputPort* src_port) buffer(v)->clear(); // Turn off broadcasting if we're no longer connected - if (_type == DataType::CONTROL && _connections.size() == 0) + if (_type == PortType::CONTROL && _connections.size() == 0) _broadcast = false; return connection; |