summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/JackMidiDriver.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-08 06:04:32 +0000
committerDavid Robillard <d@drobilla.net>2007-04-08 06:04:32 +0000
commite96c36c1a7abb062e36efc0ac95c35fedcef922e (patch)
tree826d5caa0392201472d12c02a1c3df4cf7b275be /src/libs/engine/JackMidiDriver.h
parent7d69e89f22304e37fa325ce4f39a374a02072a69 (diff)
downloadingen-e96c36c1a7abb062e36efc0ac95c35fedcef922e.tar.gz
ingen-e96c36c1a7abb062e36efc0ac95c35fedcef922e.tar.bz2
ingen-e96c36c1a7abb062e36efc0ac95c35fedcef922e.zip
De-template-ification of port types (req. for LV2 MIDI, but nice code size reduction).
LV2 MIDI patching support (LV2 style MIDI throughout, inc. internal plugins). git-svn-id: http://svn.drobilla.net/lad/ingen@415 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/JackMidiDriver.h')
-rw-r--r--src/libs/engine/JackMidiDriver.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/engine/JackMidiDriver.h b/src/libs/engine/JackMidiDriver.h
index d6d2cf51..535a1f22 100644
--- a/src/libs/engine/JackMidiDriver.h
+++ b/src/libs/engine/JackMidiDriver.h
@@ -29,7 +29,7 @@ namespace Ingen {
class Node;
class SetPortValueEvent;
class JackMidiDriver;
-template <typename T> class DuplexPort;
+class DuplexPort;
/** Representation of an JACK MIDI port.
@@ -39,19 +39,19 @@ template <typename T> class DuplexPort;
class JackMidiPort : public DriverPort, public Raul::ListNode<JackMidiPort*>
{
public:
- JackMidiPort(JackMidiDriver* driver, DuplexPort<MidiMessage>* port);
+ JackMidiPort(JackMidiDriver* driver, DuplexPort* port);
virtual ~JackMidiPort();
void prepare_block(const SampleCount block_start, const SampleCount block_end);
void set_name(const std::string& name) { jack_port_set_name(_jack_port, name.c_str()); };
- DuplexPort<MidiMessage>* patch_port() const { return _patch_port; }
+ DuplexPort* patch_port() const { return _patch_port; }
private:
- JackMidiDriver* _driver;
- jack_port_t* _jack_port;
- DuplexPort<MidiMessage>* _patch_port;
+ JackMidiDriver* _driver;
+ jack_port_t* _jack_port;
+ DuplexPort* _patch_port;
};
@@ -78,7 +78,7 @@ public:
void prepare_block(const SampleCount block_start, const SampleCount block_end);
- JackMidiPort* create_port(DuplexPort<MidiMessage>* patch_port)
+ JackMidiPort* create_port(DuplexPort* patch_port)
{ return new JackMidiPort(this, patch_port); }
void add_port(DriverPort* port);