aboutsummaryrefslogtreecommitdiffstats
path: root/src/triangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/triangle.c')
-rw-r--r--src/triangle.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/triangle.c b/src/triangle.c
index 1189b06..fb03f7b 100644
--- a/src/triangle.c
+++ b/src/triangle.c
@@ -28,16 +28,16 @@
#define TRIANGLE_OUTPUT 2
typedef struct {
- float* frequency;
- float* slope;
- float* output;
- float phase;
- float min_slope;
- float max_slope;
- uint32_t frequency_is_cv;
- uint32_t slope_is_cv;
- Wavedata wdat;
- URIs uris;
+ const float* frequency;
+ const float* slope;
+ float* output;
+ float phase;
+ float min_slope;
+ float max_slope;
+ uint32_t frequency_is_cv;
+ uint32_t slope_is_cv;
+ Wavedata wdat;
+ URIs uris;
} Triangle;
static void
@@ -49,10 +49,10 @@ connect_port(LV2_Handle instance,
switch (port) {
case TRIANGLE_FREQUENCY:
- plugin->frequency = (float*)data;
+ plugin->frequency = (const float*)data;
break;
case TRIANGLE_SLOPE:
- plugin->slope = (float*)data;
+ plugin->slope = (const float*)data;
break;
case TRIANGLE_OUTPUT:
plugin->output = (float*)data;