/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2019 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include "DistrhoPlugin.hpp" #include START_NAMESPACE_DISTRHO class CairoExamplePlugin : public Plugin { public: CairoExamplePlugin() : Plugin(0, 0, 0) { } const char* getLabel() const { return "Cairo DPF Example"; } const char* getMaker() const { return "Jean Pierre Cimalando"; } const char* getLicense() const { return "ISC"; } uint32_t getVersion() const { return 0; } int64_t getUniqueId() const { return 0; } void initParameter(uint32_t index, Parameter& parameter) { // unused (void)index; (void)parameter; } float getParameterValue(uint32_t index) const { return 0; // unused (void)index; } void setParameterValue(uint32_t index, float value) { // unused (void)index; (void)value; } void run(const float** inputs, float** outputs, uint32_t frames) { memcpy(outputs[0], inputs[0], frames * sizeof(float)); } }; Plugin* createPlugin() { return new CairoExamplePlugin; } END_NAMESPACE_DISTRHO