aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/ADClip7/ADClip7.h
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-07-19 18:57:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-07-19 18:57:34 +0200
commit271d4c04271f63d565ff0ff96415106b2c121327 (patch)
tree4f9bc32f1e6a89eaae9705d01d79072338e3bde7 /plugins/LV2/src/ADClip7/ADClip7.h
parent83254f1690123dc66991ce50c9db23c7cadba711 (diff)
downloadairwindows-lv2-port-271d4c04271f63d565ff0ff96415106b2c121327.tar.gz
airwindows-lv2-port-271d4c04271f63d565ff0ff96415106b2c121327.tar.bz2
airwindows-lv2-port-271d4c04271f63d565ff0ff96415106b2c121327.zip
LV2: Refactor common code to base class.
Diffstat (limited to 'plugins/LV2/src/ADClip7/ADClip7.h')
-rw-r--r--plugins/LV2/src/ADClip7/ADClip7.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/LV2/src/ADClip7/ADClip7.h b/plugins/LV2/src/ADClip7/ADClip7.h
index cfe7f40..e3d8474 100644
--- a/plugins/LV2/src/ADClip7/ADClip7.h
+++ b/plugins/LV2/src/ADClip7/ADClip7.h
@@ -2,11 +2,9 @@
#define __ADClip7_H
#include <cstdint>
+#include <lv2plugin.h>
-// Required typa alias for VTS processing funcs.
-using VstInt32 = int32_t;
-
-class ADClip7 {
+class ADClip7 : protected LV2Plugin {
public:
ADClip7(double rate);
@@ -16,13 +14,13 @@ public:
static constexpr const char * URI = "https://www.airwindows.com/adclip-7";
private:
+ /*
+ * These are the original DSP functions from the VST plugin.
+ * They need to be called from the LV2 plugins `run` function.
+ */
void processReplacing(float **in, float **out, VstInt32 samples);
void processDoubleReplacing(double **in, double **out, VstInt32 samples);
- double getSampleRate();
-
- double rate;
-
// Pointers to control ports
const float * boost;
const float * soften;