diff options
Diffstat (limited to 'plugin/drumgizmo_plugin.h')
-rw-r--r-- | plugin/drumgizmo_plugin.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugin/drumgizmo_plugin.h b/plugin/drumgizmo_plugin.h index 5d4a648..3508c3e 100644 --- a/plugin/drumgizmo_plugin.h +++ b/plugin/drumgizmo_plugin.h @@ -108,9 +108,9 @@ private: public: Input(DrumGizmoPlugin& plugin); - bool init(Instruments& instruments) override; + bool init(const Instruments& instruments) override; - void setParm(std::string parm, std::string value) override; + void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; @@ -121,7 +121,7 @@ private: protected: DrumGizmoPlugin& plugin; - Instruments* instruments{nullptr}; + const Instruments* instruments{nullptr}; }; class Output @@ -130,9 +130,9 @@ private: public: Output(DrumGizmoPlugin& plugin); - bool init(Channels channels) override; + bool init(const Channels& channels) override; - void setParm(std::string parm, std::string value) override; + void setParm(const std::string& parm, const std::string& value) override; bool start() override; void stop() override; @@ -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; |