diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-07-16 23:35:07 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-07-16 23:35:07 +0200 |
commit | d5a5c482c42bd6069bf7f130fe2c3f8de71fad5e (patch) | |
tree | ef814c07ca189afebb4c853830b241406f5ca0a4 /plugins/LV2/src/Acceleration/Acceleration.h | |
parent | ed1c33f8a60b2e34c78473c2c1392fb3b809e524 (diff) | |
download | airwindows-lv2-port-d5a5c482c42bd6069bf7f130fe2c3f8de71fad5e.tar.gz airwindows-lv2-port-d5a5c482c42bd6069bf7f130fe2c3f8de71fad5e.tar.bz2 airwindows-lv2-port-d5a5c482c42bd6069bf7f130fe2c3f8de71fad5e.zip |
LV2: Split lv2 interface code and actual plugin.
Let's keep the LV2 interfacing and the actual plugin separate. For now
the actual plugin is completely independent of the plugin system, and
the wrapper code just forwards everything that's plugin specific to the
plugin proper.
Diffstat (limited to 'plugins/LV2/src/Acceleration/Acceleration.h')
-rw-r--r-- | plugins/LV2/src/Acceleration/Acceleration.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/LV2/src/Acceleration/Acceleration.h b/plugins/LV2/src/Acceleration/Acceleration.h new file mode 100644 index 0000000..c277cb9 --- /dev/null +++ b/plugins/LV2/src/Acceleration/Acceleration.h @@ -0,0 +1,21 @@ +#ifndef __Acceleration_h +#define __Acceleration_h + +#include <cstdint> + +class Acceleration { +public: + Acceleration(double rate); + + void connect_port(uint32_t port, void * data); + void run(uint32_t num_samples); + +private: + double rate; + const float * limit; + const float * drywet; + const float * in[2]; + float * out[2]; +}; + +#endif |