From e96c36c1a7abb062e36efc0ac95c35fedcef922e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Apr 2007 06:04:32 +0000 Subject: 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 --- src/libs/engine/MidiDriver.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libs/engine/MidiDriver.h') 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 -using std::cout; using std::endl; +#include "MidiBuffer.h" namespace Ingen { -class MidiMessage; - /** Midi driver abstract base class. * * \ingroup engine */ -class MidiDriver : public Driver +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* 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; } -- cgit v1.2.1