summaryrefslogtreecommitdiff
path: root/drumgizmo/input/midifile.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-01-25 16:20:30 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-02-09 09:03:17 +0100
commitc9edca027eb2d2e257ff4a13fc257385d7c64d39 (patch)
treef2f003225fc5177fa45bb61e8058aa5acb3be798 /drumgizmo/input/midifile.h
parentd3554736c13531898fb720b34772a595620e661a (diff)
Base Midi-Engines on Midi-Engine Base Class (+ Minor Renaming)
Diffstat (limited to 'drumgizmo/input/midifile.h')
-rw-r--r--drumgizmo/input/midifile.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/drumgizmo/input/midifile.h b/drumgizmo/input/midifile.h
index a7e4cf0..5eb84f0 100644
--- a/drumgizmo/input/midifile.h
+++ b/drumgizmo/input/midifile.h
@@ -30,19 +30,18 @@
#include <event.h>
#include <smf.h>
-#include "audioinputengine.h"
+#include "audioinputenginemidi.h"
#include "midimapper.h"
#include "midimapparser.h"
class MidifileInputEngine
- : public AudioInputEngine
+ : public AudioInputEngineMidi
{
public:
MidifileInputEngine();
~MidifileInputEngine();
- // based on AudioInputEngine
- bool isMidiEngine() override;
+ // based on AudioInputEngineMidi
bool init(Instruments& instruments) override;
void setParm(std::string parm, std::string value) override;
bool start() override;
@@ -55,9 +54,7 @@ private:
smf_t* smf;
smf_event_t* current_event;
- MidiMapper midi_mapper;
-
- std::string file, midimap;
+ std::string file;
float speed;
int track;
bool loop;