summaryrefslogtreecommitdiffstats
path: root/src/server/DuplexPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-19 02:24:38 +0000
committerDavid Robillard <d@drobilla.net>2012-08-19 02:24:38 +0000
commit800c329a0b77f9044923885abe0728028eca8350 (patch)
treef2d4a9d06fd6978e193de95ba60bfffe3d15a998 /src/server/DuplexPort.cpp
parent317627ef40f7654c298aa1ac707851c852259e3a (diff)
downloadingen-800c329a0b77f9044923885abe0728028eca8350.tar.gz
ingen-800c329a0b77f9044923885abe0728028eca8350.tar.bz2
ingen-800c329a0b77f9044923885abe0728028eca8350.zip
Patch => Graph
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4721 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/DuplexPort.cpp')
-rw-r--r--src/server/DuplexPort.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp
index 43197844..34c9b590 100644
--- a/src/server/DuplexPort.cpp
+++ b/src/server/DuplexPort.cpp
@@ -18,8 +18,8 @@
#include "Buffer.hpp"
#include "DuplexPort.hpp"
+#include "GraphImpl.hpp"
#include "OutputPort.hpp"
-#include "PatchImpl.hpp"
using namespace std;
@@ -49,7 +49,7 @@ DuplexPort::DuplexPort(BufferFactory& bufs,
DuplexPort::~DuplexPort()
{
if (is_linked()) {
- parent_patch()->remove_port(*this);
+ parent_graph()->remove_port(*this);
}
}
@@ -69,34 +69,34 @@ DuplexPort::get_buffers(BufferFactory& bufs,
uint32_t
DuplexPort::max_tail_poly(Context& context) const
{
- return parent_patch()->internal_poly_process();
+ return parent_graph()->internal_poly_process();
}
-/** Prepare for the execution of parent patch */
+/** Prepare for the execution of parent graph */
void
DuplexPort::pre_process(Context& context)
{
if (_is_output) {
- /* This is a patch output, which is an input from the internal
+ /* This is a graph output, which is an input from the internal
perspective. Prepare buffers for write so plugins can deliver to
them */
for (uint32_t v = 0; v < _poly; ++v) {
_buffers->at(v)->prepare_write(context);
}
} else {
- /* This is a a patch input, which is an output from the internal
+ /* This is a a graph input, which is an output from the internal
perspective. Do whatever a normal block's input port does to
prepare input for reading. */
InputPort::pre_process(context);
}
}
-/** Finalize after the execution of parent patch (deliver outputs) */
+/** Finalize after the execution of parent graph (deliver outputs) */
void
DuplexPort::post_process(Context& context)
{
if (_is_output) {
- /* This is a patch output, which is an input from the internal
+ /* This is a graph output, which is an input from the internal
perspective. Mix down input delivered by plugins so output
(external perspective) is ready. */
InputPort::pre_process(context);