SquidgeDSP/plugins/SquidgeDistortion/SquidgeDistortion.cpp
2026-08-02 05:37:06 +01:00

33 lines
977 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 "MIT"; }
uint32_t getVersion() const override { return d_version(1, 0, 0); }
int64_t getUniqueId() const override { return d_cconst('M', 'A', '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