summaryrefslogtreecommitdiff
path: root/drumgizmo/input/midifile.h
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/input/midifile.h')
-rw-r--r--drumgizmo/input/midifile.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/drumgizmo/input/midifile.h b/drumgizmo/input/midifile.h
index 6749339..5efcc72 100644
--- a/drumgizmo/input/midifile.h
+++ b/drumgizmo/input/midifile.h
@@ -34,31 +34,31 @@
#include "midimapper.h"
#include "midimapparser.h"
-class MidifileInputEngine
- : public AudioInputEngine {
- public:
- MidifileInputEngine();
- ~MidifileInputEngine();
-
- // based on AudioInputEngine
- bool isMidiEngine() override;
- bool init(Instruments &instruments) override;
- void setParm(std::string parm, std::string value) override;
- bool start() override;
- void stop() override;
- void pre() override;
- event_t* run(size_t pos, size_t len, size_t* nevents) override;
- void post() override;
-
- private:
- smf_t* smf;
- smf_event_t* current_event;
-
- MidiMapper midi_mapper;
-
- std::string file, midimap;
- float speed;
- int track;
- bool loop;
- double offset;
+class MidifileInputEngine : public AudioInputEngine
+{
+public:
+ MidifileInputEngine();
+ ~MidifileInputEngine();
+
+ // based on AudioInputEngine
+ bool isMidiEngine() override;
+ bool init(Instruments &instruments) override;
+ void setParm(std::string parm, std::string value) override;
+ bool start() override;
+ void stop() override;
+ void pre() override;
+ event_t *run(size_t pos, size_t len, size_t *nevents) override;
+ void post() override;
+
+private:
+ smf_t *smf;
+ smf_event_t *current_event;
+
+ MidiMapper midi_mapper;
+
+ std::string file, midimap;
+ float speed;
+ int track;
+ bool loop;
+ double offset;
};