aboutsummaryrefslogtreecommitdiffstats
path: root/src/amp.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-11 03:28:57 +0000
committerDavid Robillard <d@drobilla.net>2012-08-11 03:28:57 +0000
commit3444a46f4b058f5c0066320914c56bd1b417d06f (patch)
treea3ad1eae326271ce243c1f49ca413b51be9a4a35 /src/amp.c
parent1024036481f0847443add3277830aab4fa92de0e (diff)
downloadblop.lv2-3444a46f4b058f5c0066320914c56bd1b417d06f.tar.gz
blop.lv2-3444a46f4b058f5c0066320914c56bd1b417d06f.tar.bz2
blop.lv2-3444a46f4b058f5c0066320914c56bd1b417d06f.zip
Make sum, product, and difference plugins vectorizable.
Improve const correctness. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4652 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/amp.c')
-rw-r--r--src/amp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amp.c b/src/amp.c
index 5bcd339..96ef690 100644
--- a/src/amp.c
+++ b/src/amp.c
@@ -50,10 +50,10 @@ connect_port(LV2_Handle instance,
switch (port) {
case AMP_GAIN:
- plugin->gain = (float*)data;
+ plugin->gain = (const float*)data;
break;
case AMP_INPUT:
- plugin->input = (float*)data;
+ plugin->input = (const float*)data;
break;
case AMP_OUTPUT:
plugin->output = (float*)data;