aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-07-15 18:42:51 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-07-15 18:42:51 +0200
commitafcf2d362e280d41db1e8b8b8b99cd3617120fcc (patch)
tree0c3e80a4e7794e9816ad2e41835f1e61b4997ac1
parent18b6601156bad60364ff67c9c9e897c172fe0aab (diff)
downloadairwindows-lv2-port-afcf2d362e280d41db1e8b8b8b99cd3617120fcc.tar.gz
airwindows-lv2-port-afcf2d362e280d41db1e8b8b8b99cd3617120fcc.tar.bz2
airwindows-lv2-port-afcf2d362e280d41db1e8b8b8b99cd3617120fcc.zip
LV2: Just copy input to output for now.
-rw-r--r--plugins/LV2/src/Acceleration/Acceleration.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/LV2/src/Acceleration/Acceleration.cpp b/plugins/LV2/src/Acceleration/Acceleration.cpp
index 28d45e2..2fc0237 100644
--- a/plugins/LV2/src/Acceleration/Acceleration.cpp
+++ b/plugins/LV2/src/Acceleration/Acceleration.cpp
@@ -65,6 +65,9 @@ void activate(LV2_Handle instance)
void run(LV2_Handle instance, uint32_t num_samples)
{
auto accel = (acceleration *) instance;
+ for (auto i = 0u; i < num_samples; i++) {
+ *accel->out++ = *accel->in++;
+ }
}
void deactivate(LV2_Handle)