summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-02 18:33:34 +0000
committerDavid Robillard <d@drobilla.net>2007-08-02 18:33:34 +0000
commite671a1e03df0d327691b9d13fb3bd753fb58a85c (patch)
treed2458bd7a0c2463d391a6f672c9876e877ab2e71 /src/libs/engine/InputPort.cpp
parent191b78d09365112a868ddaf3f813ef2b5bc2c252 (diff)
downloadingen-e671a1e03df0d327691b9d13fb3bd753fb58a85c.tar.gz
ingen-e671a1e03df0d327691b9d13fb3bd753fb58a85c.tar.bz2
ingen-e671a1e03df0d327691b9d13fb3bd753fb58a85c.zip
Fix MIDI patching.
Remove ugly C LV2 MIDI functions and moved functionality into MidiBuffer. git-svn-id: http://svn.drobilla.net/lad/ingen@671 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/InputPort.cpp')
-rw-r--r--src/libs/engine/InputPort.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp
index 1580dc81..6466dee3 100644
--- a/src/libs/engine/InputPort.cpp
+++ b/src/libs/engine/InputPort.cpp
@@ -182,6 +182,9 @@ InputPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end)
for (uint32_t i=0; i < _poly; ++i)
_buffers.at(i)->prepare_read(nframes);
+
+ if (_type == DataType::MIDI)
+ cerr << path() << " nevents: " << ((MidiBuffer*)_buffers.at(0))->event_count() << endl;
if (!do_mixdown) {
assert(_buffers.at(0)->is_joined_to((*_connections.begin())->buffer(0)));