summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audioinputenginemidi.h2
-rw-r--r--src/midimapper.cc5
-rw-r--r--src/midimapper.h2
3 files changed, 8 insertions, 1 deletions
diff --git a/src/audioinputenginemidi.h b/src/audioinputenginemidi.h
index 19f7da4..e02ba21 100644
--- a/src/audioinputenginemidi.h
+++ b/src/audioinputenginemidi.h
@@ -51,7 +51,7 @@ public:
virtual void run(size_t pos, size_t len, std::vector<event_t>& events) = 0;
virtual void post() = 0;
- bool loadMidiMap(const std::string& file, const Instruments& i);
+ virtual bool loadMidiMap(const std::string& file, const Instruments& i);
std::string getMidimapFile() const;
diff --git a/src/midimapper.cc b/src/midimapper.cc
index ab3d8d7..9243ecf 100644
--- a/src/midimapper.cc
+++ b/src/midimapper.cc
@@ -51,3 +51,8 @@ void MidiMapper::swap(instrmap_t& instrmap, midimap_t& midimap)
std::swap(this->instrmap, instrmap);
std::swap(this->midimap, midimap);
}
+
+const midimap_t& MidiMapper::getMap()
+{
+ return midimap;
+}
diff --git a/src/midimapper.h b/src/midimapper.h
index fc3faec..4673e33 100644
--- a/src/midimapper.h
+++ b/src/midimapper.h
@@ -43,6 +43,8 @@ public:
//! Set new map sets.
void swap(instrmap_t& instrmap, midimap_t& midimap);
+ const midimap_t& getMap();
+
private:
instrmap_t instrmap;
midimap_t midimap;