From 8f1fe0695479ec9bcca84aa44e6454dec50cea00 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 May 2012 18:38:44 +0000 Subject: Make IngenPort non-pure. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4353 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/EnginePort.hpp | 16 +++++++++------- src/server/ingen_lv2.cpp | 5 ----- 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'src/server') diff --git a/src/server/EnginePort.hpp b/src/server/EnginePort.hpp index 7ba58871..6e6d0d1a 100644 --- a/src/server/EnginePort.hpp +++ b/src/server/EnginePort.hpp @@ -32,7 +32,7 @@ namespace Server { class DuplexPort; class ProcessContext; -/** Representation of a "system" port (a port outside Ingen). +/** Representation of a "system" port (e.g. a Jack port). * * This is the class through which the rest of the engine manages everything * related to driver ports. Derived classes are expected to have a pointer to @@ -42,17 +42,21 @@ class ProcessContext; */ class EnginePort : public Raul::Noncopyable, public Raul::Deletable { public: - EnginePort() : _patch_port(NULL), _buffer(NULL) {} + explicit EnginePort(DuplexPort* port) + : _patch_port(port) + , _buffer(NULL) + {} + virtual ~EnginePort() {} /** Set the name of the system port according to new path */ - virtual void move(const Raul::Path& path) = 0; + virtual void move(const Raul::Path& path) {} /** Create system port */ - virtual void create() = 0; + virtual void create() {} /** Destroy system port */ - virtual void destroy() = 0; + virtual void destroy() {} void* buffer() const { return _buffer; } void set_buffer(void* buf) { _buffer = buf; } @@ -61,8 +65,6 @@ public: DuplexPort* patch_port() const { return _patch_port; } protected: - explicit EnginePort(DuplexPort* port) : _patch_port(port) {} - DuplexPort* _patch_port; void* _buffer; }; diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 34d8003f..ec91d6fc 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -89,11 +89,6 @@ public: , _driver(driver) {} - // TODO: LV2 dynamic ports - void create() {} - void destroy() {} - void move(const Raul::Path& path) {} - void pre_process(ProcessContext& context) { if (!is_input() || !_buffer) { return; -- cgit v1.2.1