summaryrefslogtreecommitdiffstats
path: root/src/engine/DuplexPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-11 19:31:17 +0000
committerDavid Robillard <d@drobilla.net>2009-05-11 19:31:17 +0000
commitcb5287d0379287c461a0ac5b950161244a7fa53b (patch)
tree135aa05d505614ab3a503a3df96324b8a3026126 /src/engine/DuplexPort.cpp
parent698c38587bd4f0133a132dc363098ff8298ec47b (diff)
downloadingen-cb5287d0379287c461a0ac5b950161244a7fa53b.tar.gz
ingen-cb5287d0379287c461a0ac5b950161244a7fa53b.tar.bz2
ingen-cb5287d0379287c461a0ac5b950161244a7fa53b.zip
Fix subpatch MIDI IO.
Fixes tickets #323 and #332. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1974 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/DuplexPort.cpp')
-rw-r--r--src/engine/DuplexPort.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/engine/DuplexPort.cpp b/src/engine/DuplexPort.cpp
index 3ede6969..9c1f4be6 100644
--- a/src/engine/DuplexPort.cpp
+++ b/src/engine/DuplexPort.cpp
@@ -32,7 +32,7 @@ namespace Ingen {
DuplexPort::DuplexPort(
- NodeImpl* parent,
+ NodeImpl* parent,
const string& name,
uint32_t index,
uint32_t poly,
@@ -60,15 +60,9 @@ DuplexPort::pre_process(ProcessContext& context)
cerr << path() << " duplex pre: buffer: " << buffer(0) << endl;
cerr << path() << " duplex pre: is_output: " << _is_output << " { " << endl;*/
- /*if (type() == DataType::EVENT)
- for (uint32_t i=0; i < _poly; ++i)
- cerr << path() << " (" << buffer(i) << ") # events: "
- << ((EventBuffer*)buffer(i))->event_count()
- << ", joined: " << _buffers->at(i)->is_joined() << endl;*/
-
for (Connections::iterator c = _connections.begin(); c != _connections.end(); ++c)
(*c)->process(context);
-
+
if (_is_output) {
for (uint32_t i=0; i < _poly; ++i)
@@ -84,7 +78,14 @@ DuplexPort::pre_process(ProcessContext& context)
broadcast(context);
}
-
+
+ /*if (type() == DataType::EVENT)
+ for (uint32_t i=0; i < _poly; ++i)
+ cerr << path() << " (" << buffer(i) << ") # events: "
+ << ((EventBuffer*)buffer(i))->event_count()
+ << ", joined: " << _buffers->at(i)->is_joined()
+ << ", is_output: " << _is_output << endl;*/
+
//cerr << "} duplex pre " << path() << endl;
// </BrainHurt>