diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/drumgizmo_plugin.cc | 5 | ||||
-rw-r--r-- | plugin/drumgizmo_plugin.h | 3 |
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: |