From 3444a46f4b058f5c0066320914c56bd1b417d06f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Aug 2012 03:28:57 +0000 Subject: 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 --- src/pulse.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/pulse.c') diff --git a/src/pulse.c b/src/pulse.c index bffe4ea..b59caf8 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -28,14 +28,14 @@ #define PULSE_OUTPUT 2 typedef struct { - float* frequency; - float* pulsewidth; - float* output; - float phase; - uint32_t frequency_is_cv; - uint32_t pulsewidth_is_cv; - Wavedata wdat; - URIs uris; + const float* frequency; + const float* pulsewidth; + float* output; + float phase; + uint32_t frequency_is_cv; + uint32_t pulsewidth_is_cv; + Wavedata wdat; + URIs uris; } Pulse; static void @@ -47,10 +47,10 @@ connect_port(LV2_Handle instance, switch (port) { case PULSE_FREQUENCY: - plugin->frequency = (float*)data; + plugin->frequency = (const float*)data; break; case PULSE_PULSEWIDTH: - plugin->pulsewidth = (float*)data; + plugin->pulsewidth = (const float*)data; break; case PULSE_OUTPUT: plugin->output = (float*)data; -- cgit v1.2.1