summaryrefslogtreecommitdiffstats
path: root/src/server/OutputPort.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/OutputPort.hpp')
-rw-r--r--src/server/OutputPort.hpp28
1 files changed, 6 insertions, 22 deletions
diff --git a/src/server/OutputPort.hpp b/src/server/OutputPort.hpp
index 68c79768..1058defb 100644
--- a/src/server/OutputPort.hpp
+++ b/src/server/OutputPort.hpp
@@ -1,6 +1,6 @@
/*
This file is part of Ingen.
- Copyright 2007-2015 David Robillard <http://drobilla.net/>
+ Copyright 2007-2016 David Robillard <http://drobilla.net/>
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
@@ -17,8 +17,6 @@
#ifndef INGEN_ENGINE_OUTPUTPORT_HPP
#define INGEN_ENGINE_OUTPUTPORT_HPP
-#include <cstdlib>
-
#include "PortImpl.hpp"
namespace Ingen {
@@ -27,11 +25,11 @@ namespace Server {
/** An output port.
*
* Output ports always have a locally allocated buffer, and buffer() will
- * always return that buffer. (This is very different from InputPort)
+ * always return that buffer.
*
* \ingroup engine
*/
-class OutputPort : virtual public PortImpl
+class OutputPort : public PortImpl
{
public:
OutputPort(BufferFactory& bufs,
@@ -42,23 +40,9 @@ public:
PortType type,
LV2_URID buffer_type,
const Atom& value,
- size_t buffer_size = 0);
-
- virtual ~OutputPort() {}
-
- bool get_buffers(BufferFactory& bufs,
- Raul::Array<Voice>* voices,
- uint32_t poly,
- bool real_time) const;
-
- void pre_process(RunContext& context);
- void post_process(RunContext& context);
-
- SampleCount next_value_offset(SampleCount offset, SampleCount end) const;
- void update_values(SampleCount offset, uint32_t voice);
-
- bool is_input() const { return false; }
- bool is_output() const { return true; }
+ size_t buffer_size = 0)
+ : PortImpl(bufs, parent, symbol, index,poly, type, buffer_type, value, buffer_size, true)
+ {}
};
} // namespace Server