summaryrefslogtreecommitdiffstats
path: root/src/engine/PatchImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-18 00:38:45 +0000
committerDavid Robillard <d@drobilla.net>2009-11-18 00:38:45 +0000
commit6ec390d53a3dbea90e7308c9e40e03266f5d5127 (patch)
tree964973527778b5b2b28f8a5ebf63057fb7651d36 /src/engine/PatchImpl.cpp
parent1a725c0811fd15900464e1eff429c6ead90805d4 (diff)
downloadingen-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/PatchImpl.cpp')
-rw-r--r--src/engine/PatchImpl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/PatchImpl.cpp b/src/engine/PatchImpl.cpp
index 2e02355f..6388f648 100644
--- a/src/engine/PatchImpl.cpp
+++ b/src/engine/PatchImpl.cpp
@@ -146,7 +146,7 @@ PatchImpl::process(ProcessContext& context)
/*if (_ports)
for (size_t i=0; i < _ports->size(); ++i)
- if (_ports->at(i)->is_input() && _ports->at(i)->type() == DataType::MIDI)
+ if (_ports->at(i)->is_input() && _ports->at(i)->type() == PortType::MIDI)
cerr << _ports->at(i)->path() << " "
<< _ports->at(i)->buffer(0) << " # events: "
<< ((MidiBuffer*)_ports->at(i)->buffer(0))->event_count() << endl;*/
@@ -342,14 +342,14 @@ PatchImpl::num_ports() const
/** Create a port. Not realtime safe.
*/
PortImpl*
-PatchImpl::create_port(BufferFactory& bufs, const string& name, DataType type, size_t buffer_size, bool is_output)
+PatchImpl::create_port(BufferFactory& bufs, const string& name, PortType type, size_t buffer_size, bool is_output)
{
- if (type == DataType::UNKNOWN) {
+ if (type == PortType::UNKNOWN) {
cerr << "[PatchImpl::create_port] Unknown port type " << type.uri() << endl;
return NULL;
}
- assert( !(type == DataType::UNKNOWN) );
+ assert( !(type == PortType::UNKNOWN) );
return new DuplexPort(bufs, this, name, num_ports(), _polyphony, type, Raul::Atom(), buffer_size, is_output);
}