diff options
author | David Robillard <d@drobilla.net> | 2007-09-29 21:39:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-29 21:39:53 +0000 |
commit | c0af61632938f161dd2e15dec3c5260a3d5427ca (patch) | |
tree | 950bcfc1bc1fb232f8244c42504b8da3d5b511f5 /src/libs/engine/OutputPort.cpp | |
parent | 85923e8b4f9f1601f008a9120d376d944f2478a2 (diff) | |
download | ingen-c0af61632938f161dd2e15dec3c5260a3d5427ca.tar.gz ingen-c0af61632938f161dd2e15dec3c5260a3d5427ca.tar.bz2 ingen-c0af61632938f161dd2e15dec3c5260a3d5427ca.zip |
Work towards port monitoring and better (higher utilization) parallel execution.
git-svn-id: http://svn.drobilla.net/lad/ingen@784 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/OutputPort.cpp')
-rw-r--r-- | src/libs/engine/OutputPort.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libs/engine/OutputPort.cpp b/src/libs/engine/OutputPort.cpp index 9724c4c7..b7da8956 100644 --- a/src/libs/engine/OutputPort.cpp +++ b/src/libs/engine/OutputPort.cpp @@ -16,7 +16,8 @@ */ #include "OutputPort.hpp" -#include "Buffer.hpp" +#include "AudioBuffer.hpp" +#include "ProcessContext.hpp" namespace Ingen { @@ -30,6 +31,15 @@ OutputPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end) void +OutputPort::process(ProcessContext& context, SampleCount nframes, FrameTime start, FrameTime end) +{ + if (_monitor && _type == DataType::FLOAT && _buffer_size == 1) { + context.event_sink().control_change(this, ((AudioBuffer*)(*_buffers)[0])->value_at(0)); + } +} + + +void OutputPort::post_process(SampleCount nframes, FrameTime start, FrameTime end) { for (uint32_t i=0; i < _poly; ++i) |