summaryrefslogtreecommitdiff
path: root/drumgizmo/input/midifile.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-01-25 14:14:22 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-02-09 09:03:17 +0100
commit100e2d3bd46f64df730c8a375559680c577036ef (patch)
tree952e0ce0a1c5b6efb792c50617baa1484ba51e39 /drumgizmo/input/midifile.h
parente5a773e80bee619987aacd40cc3205acfe146e9c (diff)
applied clang-format
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;
};