diff options
Diffstat (limited to 'src/libs/engine/PortImpl.cpp')
-rw-r--r-- | src/libs/engine/PortImpl.cpp | 8 |
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); + } } } } |