summaryrefslogtreecommitdiff
path: root/examples/CairoUI/PluginMain.h
blob: cd4ca4b845867ce0ab5c6fb533503e3abc73e147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//          Copyright Jean Pierre Cimalando 2018.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#include "DistrhoPlugin.hpp"

class ExamplePlugin : public Plugin {
public:
    ExamplePlugin();
    const char *getLabel() const override;
    const char *getMaker() const override;
    const char *getLicense() const override;
    uint32_t getVersion() const override;
    int64_t getUniqueId() const override;
    void initParameter(uint32_t index, Parameter &parameter) override;
    float getParameterValue(uint32_t index) const override;
    void setParameterValue(uint32_t index, float value) override;
    void run(const float **inputs, float **outputs, uint32_t frames) override;
};