summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-08-01 16:54:34 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-08-01 17:04:12 +0200
commit857da27194ea621734be7df4c1d940992dbb26e9 (patch)
tree8698f4347b1a1ac0c1133533963b64f7eb041eaf /plugin
parent982aad68eedfcd70a19864c31255e70a34876db4 (diff)
Remove the last references to hardcoded 44k1Hz samplerate.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc5
-rw-r--r--plugin/drumgizmo_plugin.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 847d8d2..a5dd7be 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -479,6 +479,11 @@ size_t DrumGizmoPlugin::Output::getBufferSize() const
return plugin.getFramesize();
}
+std::size_t DrumGizmoPlugin::Output::getSamplerate() const
+{
+ return plugin.drumgizmo->samplerate();
+}
+
bool DrumGizmoPlugin::Output::isFreewheeling() const
{
return plugin.getFreeWheel();
diff --git a/plugin/drumgizmo_plugin.h b/plugin/drumgizmo_plugin.h
index 6c8eda2..d864def 100644
--- a/plugin/drumgizmo_plugin.h
+++ b/plugin/drumgizmo_plugin.h
@@ -151,7 +151,8 @@ private:
void post(size_t nsamples) override;
sample_t *getBuffer(int ch) const override;
- size_t getBufferSize() const override;
+ std::size_t getBufferSize() const override;
+ std::size_t getSamplerate() const override;
bool isFreewheeling() const override;
protected: