summaryrefslogtreecommitdiff
path: root/src/audioinputenginemidi.h
diff options
context:
space:
mode:
authorjsc@umbraculum.org <jsc@umbraculum.org>2013-04-26 15:23:24 +0200
committerjsc@umbraculum.org <jsc@umbraculum.org>2013-04-26 15:23:24 +0200
commit3eeba619215dadb15a5fd992cba03bf760c23d3a (patch)
tree423450a0419b37fc9f3e8cf65c0a425e2e418ae7 /src/audioinputenginemidi.h
parent2eedb967d2a3f8026163bd182e973106e6846a13 (diff)
parent813d802443679a6f937a13680bc0ec3fb11a96b6 (diff)
Merge branch 'master' of http://git.drumgizmo.org/drumgizmo
Diffstat (limited to 'src/audioinputenginemidi.h')
-rw-r--r--src/audioinputenginemidi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audioinputenginemidi.h b/src/audioinputenginemidi.h
index 0f63f8a..b01fef0 100644
--- a/src/audioinputenginemidi.h
+++ b/src/audioinputenginemidi.h
@@ -36,6 +36,7 @@
class AudioInputEngineMidi : public AudioInputEngine {
public:
+ AudioInputEngineMidi();
virtual ~AudioInputEngineMidi() {}
bool isMidiEngine() { return true; }
@@ -51,13 +52,16 @@ public:
virtual event_t *run(size_t pos, size_t len, size_t *nevents) = 0;
virtual void post() = 0;
- void loadMidiMap(std::string file, Instruments &i);
+ bool loadMidiMap(std::string file, Instruments &i);
std::string midimapFile();
+ bool isValid();
+
protected:
MidiMapper mmap;
std::string file;
+ bool is_valid;
};
#endif/*__DRUMGIZMO_AUDIOINPUTENGINEMIDI_H__*/