summaryrefslogtreecommitdiff
path: root/plugin/drumgizmo_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/drumgizmo_plugin.cc')
-rw-r--r--plugin/drumgizmo_plugin.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 6563dcc..24cfb9a 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -182,13 +182,13 @@ DrumGizmoPlugin::Input::Input(DrumGizmoPlugin& plugin)
{
}
-bool DrumGizmoPlugin::Input::init(Instruments &instruments)
+bool DrumGizmoPlugin::Input::init(const Instruments &instruments)
{
this->instruments = &instruments;
return true;
}
-void DrumGizmoPlugin::Input::setParm(std::string parm, std::string value)
+void DrumGizmoPlugin::Input::setParm(const std::string& parm, const std::string& value)
{
}
@@ -241,12 +241,12 @@ DrumGizmoPlugin::Output::Output(DrumGizmoPlugin& plugin)
{
}
-bool DrumGizmoPlugin::Output::init(Channels channels)
+bool DrumGizmoPlugin::Output::init(const Channels& channels)
{
return true;
}
-void DrumGizmoPlugin::Output::setParm(std::string parm, std::string value)
+void DrumGizmoPlugin::Output::setParm(const std::string& parm, const std::string& value)
{
}
@@ -291,7 +291,7 @@ void DrumGizmoPlugin::Output::post(size_t nsamples)
{
}
-sample_t* DrumGizmoPlugin::Output::getBuffer(int ch)
+sample_t* DrumGizmoPlugin::Output::getBuffer(int ch) const
{
assert(plugin.output_samples);
@@ -303,7 +303,7 @@ sample_t* DrumGizmoPlugin::Output::getBuffer(int ch)
return (*plugin.output_samples)[ch];
}
-size_t DrumGizmoPlugin::Output::getBufferSize()
+size_t DrumGizmoPlugin::Output::getBufferSize() const
{
return plugin.getFramesize();
}