summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-11 18:38:44 +0000
committerDavid Robillard <d@drobilla.net>2012-05-11 18:38:44 +0000
commit8f1fe0695479ec9bcca84aa44e6454dec50cea00 (patch)
tree4d905fd4fdc460145b501a9073cd69eb2d50bc68 /src/server
parente5b2164c84d0928ce0765386095064fd946744c2 (diff)
downloadingen-8f1fe0695479ec9bcca84aa44e6454dec50cea00.tar.gz
ingen-8f1fe0695479ec9bcca84aa44e6454dec50cea00.tar.bz2
ingen-8f1fe0695479ec9bcca84aa44e6454dec50cea00.zip
Make IngenPort non-pure.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4353 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/EnginePort.hpp16
-rw-r--r--src/server/ingen_lv2.cpp5
2 files changed, 9 insertions, 12 deletions
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;