diff options
Diffstat (limited to 'plugins/LV2/src/Acceleration/Acceleration.h')
-rw-r--r-- | plugins/LV2/src/Acceleration/Acceleration.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/LV2/src/Acceleration/Acceleration.h b/plugins/LV2/src/Acceleration/Acceleration.h index 16efc9a..0971045 100644 --- a/plugins/LV2/src/Acceleration/Acceleration.h +++ b/plugins/LV2/src/Acceleration/Acceleration.h @@ -2,11 +2,9 @@ #define __Acceleration_H #include <cstdint> +#include <lv2plugin.h> -// Required typa alias for VTS processing funcs. -using VstInt32 = int32_t; - -class Acceleration { +class Acceleration : protected LV2Plugin { public: Acceleration(double rate); @@ -16,12 +14,13 @@ public: static constexpr const char * URI = "https://www.airwindows.com/acceleration"; 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; const float * limit; const float * drywet; const float * in[2]; |