aboutsummaryrefslogtreecommitdiffstats
path: root/src/interpolator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interpolator.c')
-rw-r--r--src/interpolator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interpolator.c b/src/interpolator.c
index 84ddd5d..e47fbe3 100644
--- a/src/interpolator.c
+++ b/src/interpolator.c
@@ -43,10 +43,10 @@ interpolate(float interval,
}
typedef struct {
- float* input;
- float* output;
- float p1;
- float p0;
+ const float* input;
+ float* output;
+ float p1;
+ float p0;
} Interpolator;
static void
@@ -64,7 +64,7 @@ connect_port(LV2_Handle instance,
switch (port) {
case INTERPOLATOR_INPUT:
- plugin->input = (float*)data;
+ plugin->input = (const float*)data;
break;
case INTERPOLATOR_OUTPUT:
plugin->output = (float*)data;