summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-02 19:19:24 +0000
committerDavid Robillard <d@drobilla.net>2013-02-02 19:19:24 +0000
commit949257d4b1451e99f6db5a4a1d3f9aa143d595e9 (patch)
treef8fc73dc7848ac312829fbc8da36d7a3df4a57ac /src/server/PortImpl.cpp
parent3265e8f01cd4e878661973730349a5ed44329713 (diff)
downloadingen-949257d4b1451e99f6db5a4a1d3f9aa143d595e9.tar.gz
ingen-949257d4b1451e99f6db5a4a1d3f9aa143d595e9.tar.bz2
ingen-949257d4b1451e99f6db5a4a1d3f9aa143d595e9.zip
Fix trigger and controller learn updating.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5027 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r--src/server/PortImpl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 01280e73..950c8739 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -380,7 +380,7 @@ PortImpl::clear_buffers()
}
void
-PortImpl::monitor(Context& context)
+PortImpl::monitor(Context& context, bool send_now)
{
if (!context.must_notify(this)) {
return;
@@ -430,7 +430,8 @@ PortImpl::monitor(Context& context)
}
const uint32_t period = monitor_period(context.engine());
- if (key && val != _last_monitor_value && _frames_since_monitor >= period) {
+ if (key && val != _last_monitor_value &&
+ (send_now || _frames_since_monitor >= period)) {
// Time to send an update
if (context.notify(key, context.start(), this,
sizeof(float), forge.Float, &val)) {