summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 09:37:45 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:35:47 +0200
commite8b37a3c47580a9e2fa7850b6defd2b5b97530d4 (patch)
treeb9ccdf4a54744a3a522e511f6b65ddfb96806ab3 /drumgizmo
parent87ac5dcd0a2faa899aea238d3d24fc84407d1a62 (diff)
using const ref strings at output engine
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/output/alsa.cc2
-rw-r--r--drumgizmo/output/alsa.h2
-rw-r--r--drumgizmo/output/jackaudio.cc2
-rw-r--r--drumgizmo/output/jackaudio.h2
-rw-r--r--drumgizmo/output/outputdummy.cc2
-rw-r--r--drumgizmo/output/outputdummy.h2
-rw-r--r--drumgizmo/output/wavfile.cc2
-rw-r--r--drumgizmo/output/wavfile.h2
8 files changed, 8 insertions, 8 deletions
diff --git a/drumgizmo/output/alsa.cc b/drumgizmo/output/alsa.cc
index 20a5366..3686656 100644
--- a/drumgizmo/output/alsa.cc
+++ b/drumgizmo/output/alsa.cc
@@ -120,7 +120,7 @@ bool AlsaOutputEngine::init(Channels channels)
return true;
}
-void AlsaOutputEngine::setParm(std::string parm, std::string value)
+void AlsaOutputEngine::setParm(const std::string& parm, const std::string& value)
{
if(parm == "dev")
{
diff --git a/drumgizmo/output/alsa.h b/drumgizmo/output/alsa.h
index f3fb457..4973f0b 100644
--- a/drumgizmo/output/alsa.h
+++ b/drumgizmo/output/alsa.h
@@ -43,7 +43,7 @@ public:
// based on AudioOutputEngine
bool init(Channels chan) override;
- void setParm(std::string parm, std::string value) override;
+ void setParm(const std::string& parm, const std::string& value) override;
bool start() override;
void stop() override;
void pre(size_t nsamples) override;
diff --git a/drumgizmo/output/jackaudio.cc b/drumgizmo/output/jackaudio.cc
index 90ac63b..9f68edd 100644
--- a/drumgizmo/output/jackaudio.cc
+++ b/drumgizmo/output/jackaudio.cc
@@ -67,7 +67,7 @@ bool JackAudioOutputEngine::init(Channels data)
return true;
}
-void JackAudioOutputEngine::setParm(std::string parm, std::string value)
+void JackAudioOutputEngine::setParm(const std::string& parm, const std::string& value)
{
}
diff --git a/drumgizmo/output/jackaudio.h b/drumgizmo/output/jackaudio.h
index e22d978..24348f6 100644
--- a/drumgizmo/output/jackaudio.h
+++ b/drumgizmo/output/jackaudio.h
@@ -41,7 +41,7 @@ public:
// based on AudioOutputEngine
bool init(Channels chan) override;
- void setParm(std::string parm, std::string value) override;
+ void setParm(const std::string& parm, const std::string& value) override;
bool start() override;
void stop() override;
void pre(size_t nsamples) override;
diff --git a/drumgizmo/output/outputdummy.cc b/drumgizmo/output/outputdummy.cc
index 2edcc28..5899ead 100644
--- a/drumgizmo/output/outputdummy.cc
+++ b/drumgizmo/output/outputdummy.cc
@@ -39,7 +39,7 @@ bool DummyOutputEngine::init(Channels data)
return true;
}
-void DummyOutputEngine::setParm(std::string parm, std::string value)
+void DummyOutputEngine::setParm(const std::string& parm, const std::string& value)
{
}
diff --git a/drumgizmo/output/outputdummy.h b/drumgizmo/output/outputdummy.h
index 023ba42..caa9e5f 100644
--- a/drumgizmo/output/outputdummy.h
+++ b/drumgizmo/output/outputdummy.h
@@ -36,7 +36,7 @@ public:
// based on AudioOutputEngine
bool init(Channels chan) override;
- void setParm(std::string parm, std::string value) override;
+ void setParm(const std::string& parm, const std::string& value) override;
bool start() override;
void stop() override;
void pre(size_t nsamples) override;
diff --git a/drumgizmo/output/wavfile.cc b/drumgizmo/output/wavfile.cc
index b19f700..e81fb2d 100644
--- a/drumgizmo/output/wavfile.cc
+++ b/drumgizmo/output/wavfile.cc
@@ -69,7 +69,7 @@ bool WavfileOutputEngine::init(Channels data)
return true;
}
-void WavfileOutputEngine::setParm(std::string parm, std::string value)
+void WavfileOutputEngine::setParm(const std::string& parm, const std::string& value)
{
if(parm == "file")
{
diff --git a/drumgizmo/output/wavfile.h b/drumgizmo/output/wavfile.h
index 1dddfa1..331733b 100644
--- a/drumgizmo/output/wavfile.h
+++ b/drumgizmo/output/wavfile.h
@@ -41,7 +41,7 @@ public:
// based on AudioOutputEngine
bool init(Channels data) override;
- void setParm(std::string parm, std::string value) override;
+ void setParm(const std::string& parm, const std::string& value) override;
bool start() override;
void stop() override;
void pre(size_t nsamples) override;