From 6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 May 2012 21:28:00 +0000 Subject: Don't cast inputs to non-const pointers. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blip.lv2@4437 a436a847-0d15-0410-975c-d299462d15a1 --- src/tracker.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/tracker.c') diff --git a/src/tracker.c b/src/tracker.c index 4460a34..cb93bf8 100644 --- a/src/tracker.c +++ b/src/tracker.c @@ -107,22 +107,22 @@ runTracker_gaaadaia_oa(LV2_Handle instance, Tracker* plugin = (Tracker*)instance; /* Gate (array of floats of length sample_count) */ - float* gate = plugin->gate; + const float* gate = plugin->gate; /* Gate High Attack Rate (array of floats of length sample_count) */ - float* hattack = plugin->hattack; + const float* hattack = plugin->hattack; /* Gate High Decay Rate (array of floats of length sample_count) */ - float* hdecay = plugin->hdecay; + const float* hdecay = plugin->hdecay; /* Gate Low Attack Rate (array of floats of length sample_count) */ - float* lattack = plugin->lattack; + const float* lattack = plugin->lattack; /* Gate Low Decay Rate (array of floats of length sample_count) */ - float* ldecay = plugin->ldecay; + const float* ldecay = plugin->ldecay; /* Input (array of floats of length sample_count) */ - float* input = plugin->input; + const float* input = plugin->input; /* Output (array of floats of length sample_count) */ float* output = plugin->output; @@ -159,7 +159,7 @@ runTracker_gaacdcia_oa(LV2_Handle instance, Tracker* plugin = (Tracker*)instance; /* Gate (array of floats of length sample_count) */ - float* gate = plugin->gate; + const float* gate = plugin->gate; /* Gate High Attack Rate (float value) */ float hattack = *(plugin->hattack); @@ -174,7 +174,7 @@ runTracker_gaacdcia_oa(LV2_Handle instance, float ldecay = *(plugin->ldecay); /* Input (array of floats of length sample_count) */ - float* input = plugin->input; + const float* input = plugin->input; /* Output (array of floats of length sample_count) */ float* output = plugin->output; -- cgit v1.2.1