From 8bd321abb4470fd050db9b46a1230dbc5e1b612e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 20 Jul 2020 23:00:38 +0200 Subject: LV2: Refactor in, out and params to base class. Base class is now a template taking number of params, inputs and outputs as template args. The last two defaults to 2 (stereo pair), but number of params have to be given. Now if only we could find a smart template for generating the run function too... --- plugins/LV2/src/ADT/ADT.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'plugins/LV2/src/ADT/ADT.h') diff --git a/plugins/LV2/src/ADT/ADT.h b/plugins/LV2/src/ADT/ADT.h index e76ae87..fb6aab4 100644 --- a/plugins/LV2/src/ADT/ADT.h +++ b/plugins/LV2/src/ADT/ADT.h @@ -4,11 +4,10 @@ #include #include -class ADT : protected LV2Plugin { +class ADT : public LV2Plugin<6> { public: ADT(double rate); - void connect_port(uint32_t port, void * data); void run(uint32_t num_samples); static constexpr const char * URI = "https://www.airwindows.com/adt"; @@ -21,16 +20,6 @@ private: void processReplacing(float **in, float **out, VstInt32 samples); void processDoubleReplacing(double **in, double **out, VstInt32 samples); - const float * headroom; - const float * a_delay; - const float * a_level; - const float * b_delay; - const float * b_level; - const float * out_level; - - const float * in[2]; - float * out[2]; - /* * Members needed by the processing functions. */ -- cgit v1.2.3