summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/PortImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-08 22:39:40 +0000
committerDavid Robillard <d@drobilla.net>2007-10-08 22:39:40 +0000
commit531cd8958765315a5340ba94487d655023acd758 (patch)
treece2ba4db8979a457903929dff6c94ac4ac9ef04f /src/libs/engine/PortImpl.cpp
parentcac2494fb075045694134a7aace68fced10ff1d9 (diff)
downloadingen-531cd8958765315a5340ba94487d655023acd758.tar.gz
ingen-531cd8958765315a5340ba94487d655023acd758.tar.bz2
ingen-531cd8958765315a5340ba94487d655023acd758.zip
OSC Blinkenports(TM).
git-svn-id: http://svn.drobilla.net/lad/ingen@856 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PortImpl.cpp')
-rw-r--r--src/libs/engine/PortImpl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs/engine/PortImpl.cpp b/src/libs/engine/PortImpl.cpp
index a6911154..7ef4a82a 100644
--- a/src/libs/engine/PortImpl.cpp
+++ b/src/libs/engine/PortImpl.cpp
@@ -23,6 +23,7 @@
#include "interface/DataType.hpp"
#include "AudioBuffer.hpp"
#include "MidiBuffer.hpp"
+#include "OSCBuffer.hpp"
#include "BufferFactory.hpp"
#include "ProcessContext.hpp"
#include "SendPortActivityEvent.hpp"
@@ -57,7 +58,7 @@ PortImpl::PortImpl(NodeImpl* const node,
if (node->parent() == NULL)
_polyphonic = false;
- if (type == DataType::MIDI)
+ if (type == DataType::MIDI || type == DataType::OSC)
_broadcast = true; // send activity blips
assert(_buffers->size() > 0);
@@ -174,6 +175,11 @@ PortImpl::broadcast(ProcessContext& context)
const SendPortActivityEvent ev(context.engine(), context.start(), this);
context.event_sink().write(sizeof(ev), &ev);
}
+ } else if (_type == DataType::OSC) {
+ if (((OSCBuffer*)(*_buffers)[0])->event_count() > 0) {
+ const SendPortActivityEvent ev(context.engine(), context.start(), this);
+ context.event_sink().write(sizeof(ev), &ev);
+ }
}
}
}