summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-01 03:23:30 +0000
committerDavid Robillard <d@drobilla.net>2007-10-01 03:23:30 +0000
commit344cdcbd4f2bc7a9203b4e98da2ac349581e521a (patch)
tree1d91bb47256094b8af4b3afe8a0e5514f0032d75 /src/libs/engine/InputPort.cpp
parent8ebd59309b153e7337f2e6668b7e2cb4301cc34a (diff)
downloadingen-344cdcbd4f2bc7a9203b4e98da2ac349581e521a.tar.gz
ingen-344cdcbd4f2bc7a9203b4e98da2ac349581e521a.tar.bz2
ingen-344cdcbd4f2bc7a9203b4e98da2ac349581e521a.zip
Generic audio thread generated Event sending system.
git-svn-id: http://svn.drobilla.net/lad/ingen@793 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/InputPort.cpp')
-rw-r--r--src/libs/engine/InputPort.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp
index 6cc7beb4..16a1c86a 100644
--- a/src/libs/engine/InputPort.cpp
+++ b/src/libs/engine/InputPort.cpp
@@ -223,8 +223,8 @@ InputPort::post_process(ProcessContext& context)
if (_monitor && _type == DataType::FLOAT && _buffer_size == 1) {
const Sample value = ((AudioBuffer*)(*_buffers)[0])->value_at(0);
if (value != _last_reported_value) {
- context.event_sink().control_change(this, context.start(),
- ((AudioBuffer*)(*_buffers)[0])->value_at(0));
+ const SendPortValueEvent ev(context.engine(), context.start(), this, false, 0, value);
+ context.event_sink().write(sizeof(ev), &ev);
_last_reported_value = value;
}
}