From c9edca027eb2d2e257ff4a13fc257385d7c64d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Mon, 25 Jan 2016 16:20:30 +0100 Subject: Base Midi-Engines on Midi-Engine Base Class (+ Minor Renaming) --- src/audioinputenginemidi.cc | 14 +++++++------- src/audioinputenginemidi.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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; -- cgit v1.2.3