summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 10:09:18 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:35:47 +0200
commit0f18336bc2a597f2625a46ea714e838d03e340b2 (patch)
tree78f328863e70a875ca35db1a64beb18fa7e437cc /plugin
parent53909b3a74e9c752d3405fda7bc63146b9abdc7a (diff)
more consistent style of output engines' getters
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc4
-rw-r--r--plugin/drumgizmo_plugin.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index b41879d..b8f8822 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -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();
}
diff --git a/plugin/drumgizmo_plugin.h b/plugin/drumgizmo_plugin.h
index 8cddef6..28a1b8f 100644
--- a/plugin/drumgizmo_plugin.h
+++ b/plugin/drumgizmo_plugin.h
@@ -141,8 +141,8 @@ private:
void run(int ch, sample_t *samples, size_t nsamples) override;
void post(size_t nsamples) override;
- sample_t *getBuffer(int ch) override;
- size_t getBufferSize() override;
+ sample_t *getBuffer(int ch) const override;
+ size_t getBufferSize() const override;
protected:
DrumGizmoPlugin& plugin;