From 9c5f7e9dc2029f97d0baf622165701e7c124b25e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 2 Jan 2007 04:15:10 +0000 Subject: 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 --- src/libs/engine/InputPort.cpp | 33 ------------------------ src/libs/engine/events/RequestPortValueEvent.cpp | 4 +-- 2 files changed, 2 insertions(+), 35 deletions(-) (limited to 'src/libs/engine') diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp index 8b170958..178a111c 100644 --- a/src/libs/engine/InputPort.cpp +++ b/src/libs/engine/InputPort.cpp @@ -155,39 +155,6 @@ template bool InputPort::is_connected_to(const OutputPort* const template bool InputPort::is_connected_to(const OutputPort* const port) const; -/** "Ties" this port to an OutputPort, so they share the same buffer. - * - * This is used by OutputNode and InputNode to provide two different ports - * (internal and external) that share a buffer. - */ -/* -template -void -InputPort::tie(OutputPort* const port) -{ - assert((Port*)port != (Port*)this); - assert(port->poly() == this->poly()); - assert(!m_is_tied); - assert(m_tied_port == NULL); - - if (Port::parent_node() != NULL) { - assert(_poly == port->poly()); - - for (size_t i=0; i < _poly; ++i) - port->buffer(i)->join(m_buffers.at(i)); - } - m_is_tied = true; - m_tied_port = port; - port->set_tied_port(this); - - assert(m_buffers.at(0)->data() == port->buffer(0)->data()); - - //cerr << "*** Tied " << this->path() << " <-> " << port->path() << endl; -} -template void InputPort::tie(OutputPort* const port); -template void InputPort::tie(OutputPort* const port); -*/ - /** Prepare buffer for access, mixing if necessary. Realtime safe. * FIXME: nframes parameter not used, */ 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*)m_port)->buffer(0)->value_at(_time - start); + m_value = ((TypedPort*)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(); -- cgit v1.2.1