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/ArcImpl.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server/ArcImpl.hpp') diff --git a/src/server/ArcImpl.hpp b/src/server/ArcImpl.hpp index 01984ba6..c796384a 100644 --- a/src/server/ArcImpl.hpp +++ b/src/server/ArcImpl.hpp @@ -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 @@ -32,7 +32,6 @@ namespace Ingen { namespace Server { class PortImpl; -class OutputPort; class InputPort; /** Represents a single inbound connection for an InputPort. @@ -72,7 +71,7 @@ public: /** Whether this arc must mix down voices into a local buffer */ bool must_mix() const; - static bool can_connect(const OutputPort* src, const InputPort* dst); + static bool can_connect(const PortImpl* src, const InputPort* dst); protected: PortImpl* const _tail; -- cgit v1.2.1