From a7d83f19b08eb4c6f79a82fe60c2b86db13f4420 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Nov 2018 13:44:03 +0100 Subject: Squashed 'waflib/' changes from 6e726eb1..5ea8f99f 5ea8f99f Improve test output spacing 0e23b29f Raise exception when test suite fails to ensure non-zero exit status d6de073b Show run time of unit tests 5b655541 Add short configure option for ultra-strict flags 4687ba6d Use gtest-like test output 258903d9 Fix failure count in test group summaries da07e738 Fix verbose tests with Python 3 git-subtree-dir: waflib git-subtree-split: 5ea8f99f6e1246079c1fe6bb590c38a53aadd40d --- src/server/DuplexPort.hpp | 98 ----------------------------------------------- 1 file changed, 98 deletions(-) delete mode 100644 src/server/DuplexPort.hpp (limited to 'src/server/DuplexPort.hpp') diff --git a/src/server/DuplexPort.hpp b/src/server/DuplexPort.hpp deleted file mode 100644 index b0066164..00000000 --- a/src/server/DuplexPort.hpp +++ /dev/null @@ -1,98 +0,0 @@ -/* - This file is part of Ingen. - 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 - Software Foundation, either version 3 of the License, or any later version. - - Ingen is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU Affero General Public License for details. - - You should have received a copy of the GNU Affero General Public License - along with Ingen. If not, see . -*/ - -#ifndef INGEN_ENGINE_DUPLEXPORT_HPP -#define INGEN_ENGINE_DUPLEXPORT_HPP - -#include - -#include "BufferRef.hpp" -#include "InputPort.hpp" - -namespace Ingen { -namespace Server { - -class BlockImpl; - -/** A duplex Port (both an input and output port on a Graph) - * - * This is used for Graph ports, since they need to appear as both an input and - * an output port based on context. There are no actual duplex ports in Ingen, - * a Port is either an Input or Output. This class only exists to allow Graph - * outputs to appear as inputs from within that Graph, and vice versa. - * - * \ingroup engine - */ -class DuplexPort : public InputPort - , public boost::intrusive::slist_base_hook<> // In GraphImpl -{ -public: - DuplexPort(BufferFactory& bufs, - GraphImpl* parent, - const Raul::Symbol& symbol, - uint32_t index, - bool polyphonic, - PortType type, - LV2_URID buf_type, - size_t buf_size, - const Atom& value, - bool is_output); - - virtual ~DuplexPort(); - - DuplexPort* duplicate(Engine& engine, - const Raul::Symbol& symbol, - GraphImpl* parent); - - void inherit_neighbour(const PortImpl* port, - Properties& remove, - Properties& add); - - void on_property(const URI& uri, const Atom& value); - - uint32_t max_tail_poly(RunContext& context) const; - - bool prepare_poly(BufferFactory& bufs, uint32_t poly); - - bool apply_poly(RunContext& context, uint32_t poly); - - bool get_buffers(BufferFactory& bufs, - PortImpl::GetFn get, - const MPtr& voices, - uint32_t poly, - size_t num_in_arcs) const; - - virtual void set_is_driver_port(BufferFactory& bufs); - - /** Set the external driver-provided buffer. - * - * This may only be called in the process thread, after an earlier call to - * prepare_driver_buffer(). - */ - void set_driver_buffer(void* buf, uint32_t capacity); - - bool setup_buffers(RunContext& ctx, BufferFactory& bufs, uint32_t poly); - - void pre_process(RunContext& context); - void post_process(RunContext& context); - - SampleCount next_value_offset(SampleCount offset, SampleCount end) const; -}; - -} // namespace Server -} // namespace Ingen - -#endif // INGEN_ENGINE_DUPLEXPORT_HPP -- cgit v1.2.1