From ad43d2e08cea225635b56c5473a768bc853ecda3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 13 Dec 2016 17:51:55 -0500 Subject: Remove virtual inheritance from Port hierarchy This was confusing stoat, and is questionable design anyway. The OutputPort functionality has been moved to PortImpl, which is a basic port with buffers suitable for use as an output, and is overridden by InputPort and DuplexPort where necessary. --- src/server/InputPort.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/server/InputPort.cpp') diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 4e1ced3e..61ce0c05 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -1,6 +1,6 @@ /* This file is part of Ingen. - Copyright 2007-2015 David Robillard + Copyright 2007-2016 David Robillard Ingen is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -27,7 +27,6 @@ #include "Engine.hpp" #include "GraphImpl.hpp" #include "InputPort.hpp" -#include "OutputPort.hpp" #include "RunContext.hpp" #include "mix.hpp" @@ -45,7 +44,7 @@ InputPort::InputPort(BufferFactory& bufs, LV2_URID buffer_type, const Atom& value, size_t buffer_size) - : PortImpl(bufs, parent, symbol, index, poly, type, buffer_type, value, buffer_size) + : PortImpl(bufs, parent, symbol, index, poly, type, buffer_type, value, buffer_size, false) , _num_arcs(0) { const Ingen::URIs& uris = bufs.uris(); @@ -118,7 +117,7 @@ InputPort::add_arc(RunContext& context, ArcImpl* c) } ArcImpl* -InputPort::remove_arc(RunContext& context, const OutputPort* tail) +InputPort::remove_arc(RunContext& context, const PortImpl* tail) { ArcImpl* arc = NULL; for (Arcs::iterator i = _arcs.begin(); i != _arcs.end(); ++i) { -- cgit v1.2.1