From c19599e7009afc1d6e859a0129ae9fc22427fb98 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 2 Aug 2020 22:27:04 +0200 Subject: LV2: Port BassKit plugin. There's an issue, where it seems the plugin will only produce noise if it's active when starting playback. Enabling it after playback has started seems to work fine. This is puzzling and will have to be investigated further at some time. --- plugins/LV2/src/BassKit/BassKit.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 plugins/LV2/src/BassKit/BassKit.cpp (limited to 'plugins/LV2/src/BassKit/BassKit.cpp') diff --git a/plugins/LV2/src/BassKit/BassKit.cpp b/plugins/LV2/src/BassKit/BassKit.cpp new file mode 100644 index 0000000..d3a2896 --- /dev/null +++ b/plugins/LV2/src/BassKit/BassKit.cpp @@ -0,0 +1,28 @@ +#include "BassKit.h" +#include +#include + +BassKit::BassKit(double rate) + : LV2Plugin(rate) + , oscGate(1.0) +{ +} + +void BassKit::run(uint32_t num_samples) +{ + A = *params[0]; + B = *params[1]; + C = *params[2]; + D = *params[3]; + + processReplacing(const_cast(in), out, num_samples); +} + +// +// Include the processing code from the VST version. +// +#include +#include "../../../LinuxVST/src/BassKit/BassKitProc.cpp" + +// Create the LV2Wrapper and register the plugin +LV2Wrapper plugin; -- cgit v1.2.3