summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-02 04:15:10 +0000
committerDavid Robillard <d@drobilla.net>2007-01-02 04:15:10 +0000
commit9c5f7e9dc2029f97d0baf622165701e7c124b25e (patch)
tree806222dbbd5cb95d2fc4a5932d4d868cd7a49863 /src/libs/engine/events
parent84906b5777d6748c09dd5ca56169aa3366d13c71 (diff)
downloadingen-9c5f7e9dc2029f97d0baf622165701e7c124b25e.tar.gz
ingen-9c5f7e9dc2029f97d0baf622165701e7c124b25e.tar.bz2
ingen-9c5f7e9dc2029f97d0baf622165701e7c124b25e.zip
Fix building non-monolithic Ingenuity.
Fixed initial node control window control values, git-svn-id: http://svn.drobilla.net/lad/ingen@230 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/RequestPortValueEvent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/events/RequestPortValueEvent.cpp b/src/libs/engine/events/RequestPortValueEvent.cpp
index a3346086..8457486f 100644
--- a/src/libs/engine/events/RequestPortValueEvent.cpp
+++ b/src/libs/engine/events/RequestPortValueEvent.cpp
@@ -54,7 +54,7 @@ RequestPortValueEvent::execute(SampleCount nframes, FrameTime start, FrameTime e
assert(_time >= start && _time <= end);
if (m_port != NULL && m_port->type() == DataType::FLOAT)
- m_value = ((TypedPort<Sample>*)m_port)->buffer(0)->value_at(_time - start);
+ m_value = ((TypedPort<Sample>*)m_port)->buffer(0)->value_at(0/*_time - start*/);
else
m_port = NULL; // triggers error response
}
@@ -64,7 +64,7 @@ void
RequestPortValueEvent::post_process()
{
string msg;
- if (m_port) {
+ if (!m_port) {
_responder->respond_error("Unable to find port for get_value responder.");
} else if (m_client) {
_responder->respond_ok();