33 lines
978 B
C++
33 lines
978 B
C++
#include "DistrhoPlugin.hpp"
|
|
#include "DistrhoPluginInfo.h"
|
|
|
|
START_NAMESPACE_DISTRHO
|
|
|
|
class SquidgeDistortion : public Plugin {
|
|
public:
|
|
SquidgeDistortion()
|
|
: Plugin(kParameterCount, 0, 0), gain(1.0), tone(1.0), volume(1.0) {}
|
|
|
|
protected:
|
|
const char *getLabel() const override { return "SquidgeDistortion"; }
|
|
const char *getDescription() const override {
|
|
return "Simple distortion plugin.";
|
|
}
|
|
const char *getMaker() const override { return "SquidgeSoft"; }
|
|
const char *getLicense() const override { return "GPL3"; }
|
|
uint32_t getVersion() const override { return d_version(0, 1, 0); }
|
|
int64_t getUniqueId() const override { return d_cconst('S', 'Q', 'D', 'T'); }
|
|
|
|
void run(const float **inputs, float **outputs, uint32_t frames) override {}
|
|
|
|
private:
|
|
float gain;
|
|
float tone;
|
|
float volume;
|
|
|
|
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(SquidgeDistortion);
|
|
};
|
|
|
|
Plugin *createPlugin() { return new SquidgeDistortion(); }
|
|
|
|
END_NAMESPACE_DISTRHO
|