summaryrefslogtreecommitdiff
path: root/src
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 /src
parentd3554736c13531898fb720b34772a595620e661a (diff)
Base Midi-Engines on Midi-Engine Base Class (+ Minor Renaming)
Diffstat (limited to 'src')
-rw-r--r--src/audioinputenginemidi.cc14
-rw-r--r--src/audioinputenginemidi.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc
index 7c1e13d..d8e3366 100644
--- a/src/audioinputenginemidi.cc
+++ b/src/audioinputenginemidi.cc
@@ -38,19 +38,19 @@ AudioInputEngineMidi::AudioInputEngineMidi()
is_valid = false;
}
-bool AudioInputEngineMidi::loadMidiMap(std::string _f, Instruments &instruments)
+bool AudioInputEngineMidi::loadMidiMap(std::string file, Instruments &instruments)
{
- std::string f = _f;
+ std::string f = file;
if(refs.load()) {
- if(_f.size() > 1 && _f[0] == '@') {
- f = refs.getValue(_f.substr(1));
+ if(file.size() > 1 && file[0] == '@') {
+ f = refs.getValue(file.substr(1));
}
} else {
ERR(drumkitparser, "Error reading refs.conf");
}
- file = "";
+ midimap = "";
is_valid = false;
DEBUG(mmap, "loadMidiMap(%s, i.size() == %d)\n", f.c_str(),
@@ -70,7 +70,7 @@ bool AudioInputEngineMidi::loadMidiMap(std::string _f, Instruments &instruments)
mmap.instrmap[instruments[i]->name()] = i;
}
- file = _f;
+ midimap = file;
is_valid = true;
return true;
@@ -78,7 +78,7 @@ bool AudioInputEngineMidi::loadMidiMap(std::string _f, Instruments &instruments)
std::string AudioInputEngineMidi::midimapFile()
{
- return file;
+ return midimap;
}
bool AudioInputEngineMidi::isValid()
diff --git a/src/audioinputenginemidi.h b/src/audioinputenginemidi.h
index 0868730..7dccf33 100644
--- a/src/audioinputenginemidi.h
+++ b/src/audioinputenginemidi.h
@@ -62,7 +62,7 @@ public:
protected:
MidiMapper mmap;
- std::string file;
+ std::string midimap;
bool is_valid;
ConfigFile refs;