aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/curve/curve.h
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-03 15:07:02 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-03 15:30:28 +0200
commit7881b2698cee2b0187adbe8a2c0a66a90cc371c1 (patch)
tree97634f663c6f24ae7d03a9400be2320671a494f1 /plugins/LV2/src/curve/curve.h
parent44faf659b6dd2de36d086e1cb5dfa5a978d89d37 (diff)
downloadairwindows-lv2-port-7881b2698cee2b0187adbe8a2c0a66a90cc371c1.tar.gz
airwindows-lv2-port-7881b2698cee2b0187adbe8a2c0a66a90cc371c1.tar.bz2
airwindows-lv2-port-7881b2698cee2b0187adbe8a2c0a66a90cc371c1.zip
Add more plugins, Console5Buss to curve
Diffstat (limited to 'plugins/LV2/src/curve/curve.h')
-rw-r--r--plugins/LV2/src/curve/curve.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/LV2/src/curve/curve.h b/plugins/LV2/src/curve/curve.h
new file mode 100644
index 0000000..7178bd8
--- /dev/null
+++ b/plugins/LV2/src/curve/curve.h
@@ -0,0 +1,32 @@
+#ifndef __curve_H
+#define __curve_H
+
+#include <lv2plugin.h>
+
+class curve : public LV2Plugin<0> {
+public:
+ curve(double rate);
+
+ void activate();
+ void run(uint32_t num_samples);
+
+ static constexpr const char * URI = "https://www.airwindows.com/curve";
+
+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);
+
+ /*
+ * Members needed by the processing functions.
+ */
+
+ long double gain;
+ uint32_t fpd;
+ //default stuff
+};
+
+#endif