summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/AlsaMidiDriver.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/AlsaMidiDriver.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/AlsaMidiDriver.h')
-rw-r--r--src/libs/engine/AlsaMidiDriver.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/engine/AlsaMidiDriver.h b/src/libs/engine/AlsaMidiDriver.h
index 85d975b9..6c6debee 100644
--- a/src/libs/engine/AlsaMidiDriver.h
+++ b/src/libs/engine/AlsaMidiDriver.h
@@ -31,7 +31,7 @@ class Node;
class SetPortValueEvent;
class AlsaMidiDriver;
class AudioDriver;
-template <typename T> class DuplexPort;
+class DuplexPort;
static const int MAX_MIDI_EVENT_SIZE = 3;
@@ -43,7 +43,7 @@ static const int MAX_MIDI_EVENT_SIZE = 3;
class AlsaMidiPort : public DriverPort, public Raul::ListNode<AlsaMidiPort*>
{
public:
- AlsaMidiPort(AlsaMidiDriver* driver, DuplexPort<MidiMessage>* port);
+ AlsaMidiPort(AlsaMidiDriver* driver, DuplexPort<MidiBuffer>* port);
virtual ~AlsaMidiPort();
void event(snd_seq_event_t* const ev);
@@ -53,11 +53,11 @@ public:
void set_name(const std::string& name);
int port_id() const { return _port_id; }
- DuplexPort<MidiMessage>* patch_port() const { return _patch_port; }
+ DuplexPort<MidiBuffer>* patch_port() const { return _patch_port; }
private:
AlsaMidiDriver* _driver;
- DuplexPort<MidiMessage>* _patch_port;
+ DuplexPort<MidiBuffer>* _patch_port;
int _port_id;
unsigned char** _midi_pool; ///< Pool of raw MIDI events for MidiMessage::buffer
Raul::SRSWQueue<snd_seq_event_t> _events;
@@ -86,7 +86,7 @@ public:
AudioDriver* audio_driver() { return _audio_driver; }
- DriverPort* create_port(DuplexPort<MidiMessage>* patch_port)
+ DriverPort* create_port(DuplexPort<MidiBuffer>* patch_port)
{ return new AlsaMidiPort(this, patch_port); }
void add_port(DriverPort* port);