|
- /*
- * DISTRHO MVerb, a DPF'ied MVerb.
- * Copyright (c) 2010 Martin Eastwood
- * Copyright (C) 2014 Filipe Coelho <falktx@falktx.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 3 of
- * the License, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * For a full copy of the GNU General Public License see the LICENSE file.
- */
-
- #ifndef DISTRHO_PLUGIN_MVERB_HPP_INCLUDED
- #define DISTRHO_PLUGIN_MVERB_HPP_INCLUDED
-
- #include "DistrhoPlugin.hpp"
- #include "MVerb.h"
-
- START_NAMESPACE_DISTRHO
-
- // -----------------------------------------------------------------------
-
- class DistrhoPluginMVerb : public Plugin
- {
- public:
- DistrhoPluginMVerb();
-
- protected:
- // -------------------------------------------------------------------
- // Information
-
- const char* d_getLabel() const noexcept override
- {
- return "MVerb";
- }
-
- const char* d_getMaker() const noexcept override
- {
- return "Martin Eastwood, falkTX";
- }
-
- const char* d_getLicense() const noexcept override
- {
- return "GPL v3+";
- }
-
- uint32_t d_getVersion() const noexcept override
- {
- return 0x1000;
- }
-
- int64_t d_getUniqueId() const noexcept override
- {
- return d_cconst('M', 'V', 'r', 'b');
- }
-
- // -------------------------------------------------------------------
- // Init
-
- void d_initParameter(uint32_t index, Parameter& parameter) override;
- void d_initProgramName(uint32_t index, d_string& programName) override;
-
- // -------------------------------------------------------------------
- // Internal data
-
- float d_getParameterValue(uint32_t index) const override;
- void d_setParameterValue(uint32_t index, float value) override;
- void d_setProgram(uint32_t index) override;
-
- // -------------------------------------------------------------------
- // Process
-
- void d_activate() override;
- void d_run(const float** inputs, float** outputs, uint32_t frames) override;
-
- // -------------------------------------------------------------------
- // Callbacks
-
- void d_sampleRateChanged(double newSampleRate) override;
-
- // -------------------------------------------------------------------
-
- private:
- MVerb<float> fVerb;
-
- DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoPluginMVerb)
- };
-
- // -----------------------------------------------------------------------
-
- END_NAMESPACE_DISTRHO
-
- #endif // DISTRHO_PLUGIN_MVERB_HPP_INCLUDED
|