summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
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;