summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/MidiDriver.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/MidiDriver.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/MidiDriver.h')
-rw-r--r--src/libs/engine/MidiDriver.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/engine/MidiDriver.h b/src/libs/engine/MidiDriver.h
index 1458aca5..ebee458c 100644
--- a/src/libs/engine/MidiDriver.h
+++ b/src/libs/engine/MidiDriver.h
@@ -21,20 +21,20 @@
#include "types.h"
#include "Driver.h"
#include <iostream>
-using std::cout; using std::endl;
+#include "MidiBuffer.h"
namespace Ingen {
-class MidiMessage;
-
/** Midi driver abstract base class.
*
* \ingroup engine
*/
-class MidiDriver : public Driver<MidiMessage>
+class MidiDriver : public Driver
{
public:
+ MidiDriver() : Driver(DataType::MIDI) {}
+
/** Prepare events (however neccessary) for the specified block (realtime safe) */
virtual void prepare_block(const SampleCount block_start, const SampleCount block_end) = 0;
};
@@ -54,7 +54,7 @@ class DummyMidiDriver : public MidiDriver
{
public:
DummyMidiDriver() {
- cout << "[DummyMidiDriver] Started Dummy MIDI driver." << endl;
+ std::cout << "[DummyMidiDriver] Started Dummy MIDI driver." << std::endl;
}
~DummyMidiDriver() {}
@@ -68,7 +68,7 @@ public:
void enable() {}
void disable() {}
- DriverPort* create_port(DuplexPort<MidiMessage>* patch_port) { return NULL; }
+ DriverPort* create_port(DuplexPort* patch_port) { return NULL; }
void add_port(DriverPort* port) {}
DriverPort* remove_port(const Raul::Path& path) { return NULL; }