From 9a61e61db6d811c32a25beec8c34e790170662e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Tue, 29 Mar 2016 09:53:07 +0200 Subject: made input engine more const-correct --- drumgizmo/input/inputdummy.cc | 2 +- drumgizmo/input/inputdummy.h | 2 +- drumgizmo/input/jackmidi.cc | 2 +- drumgizmo/input/jackmidi.h | 2 +- drumgizmo/input/midifile.cc | 2 +- drumgizmo/input/midifile.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'drumgizmo/input') 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; -- cgit v1.2.3