diff options
author | Christian Glöckner <cgloeckner@freenet.de> | 2016-03-29 09:53:07 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-03-31 17:35:47 +0200 |
commit | 9a61e61db6d811c32a25beec8c34e790170662e0 (patch) | |
tree | d1b4ccadb7906848d555cd8e48eaec2231c79b76 /drumgizmo/input | |
parent | e8b37a3c47580a9e2fa7850b6defd2b5b97530d4 (diff) |
made input engine more const-correct
Diffstat (limited to 'drumgizmo/input')
-rw-r--r-- | drumgizmo/input/inputdummy.cc | 2 | ||||
-rw-r--r-- | drumgizmo/input/inputdummy.h | 2 | ||||
-rw-r--r-- | drumgizmo/input/jackmidi.cc | 2 | ||||
-rw-r--r-- | drumgizmo/input/jackmidi.h | 2 | ||||
-rw-r--r-- | drumgizmo/input/midifile.cc | 2 | ||||
-rw-r--r-- | drumgizmo/input/midifile.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drumgizmo/input/inputdummy.cc b/drumgizmo/input/inputdummy.cc index 7d7b272..971ef29 100644 --- a/drumgizmo/input/inputdummy.cc +++ b/drumgizmo/input/inputdummy.cc @@ -34,7 +34,7 @@ DummyInputEngine::~DummyInputEngine() { } -bool DummyInputEngine::init(Instruments& instruments) +bool DummyInputEngine::init(const Instruments& instruments) { return true; } diff --git a/drumgizmo/input/inputdummy.h b/drumgizmo/input/inputdummy.h index f2353e5..7888f33 100644 --- a/drumgizmo/input/inputdummy.h +++ b/drumgizmo/input/inputdummy.h @@ -35,7 +35,7 @@ public: ~DummyInputEngine(); // based on AudioInputEngine - bool init(Instruments& instruments) override; + bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; diff --git a/drumgizmo/input/jackmidi.cc b/drumgizmo/input/jackmidi.cc index befb763..73098c5 100644 --- a/drumgizmo/input/jackmidi.cc +++ b/drumgizmo/input/jackmidi.cc @@ -48,7 +48,7 @@ JackMidiInputEngine::~JackMidiInputEngine() client.remove(*this); } -bool JackMidiInputEngine::init(Instruments& instruments) +bool JackMidiInputEngine::init(const Instruments& instruments) { if(!loadMidiMap(midimap, instruments)) { diff --git a/drumgizmo/input/jackmidi.h b/drumgizmo/input/jackmidi.h index 5e9e48f..15707c4 100644 --- a/drumgizmo/input/jackmidi.h +++ b/drumgizmo/input/jackmidi.h @@ -43,7 +43,7 @@ public: ~JackMidiInputEngine(); // based on AudioInputEngineMidi - bool init(Instruments& instruments) override; + bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; diff --git a/drumgizmo/input/midifile.cc b/drumgizmo/input/midifile.cc index 2149029..76dff12 100644 --- a/drumgizmo/input/midifile.cc +++ b/drumgizmo/input/midifile.cc @@ -52,7 +52,7 @@ MidifileInputEngine::~MidifileInputEngine() } } -bool MidifileInputEngine::init(Instruments& instruments) +bool MidifileInputEngine::init(const Instruments& instruments) { if(file == "") { diff --git a/drumgizmo/input/midifile.h b/drumgizmo/input/midifile.h index ff2e3b6..08dc249 100644 --- a/drumgizmo/input/midifile.h +++ b/drumgizmo/input/midifile.h @@ -42,7 +42,7 @@ public: ~MidifileInputEngine(); // based on AudioInputEngineMidi - bool init(Instruments& instruments) override; + bool init(const Instruments& instruments) override; void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; |