aboutsummaryrefslogtreecommitdiffstats
path: root/src/quantiser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quantiser.c')
-rw-r--r--src/quantiser.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/quantiser.c b/src/quantiser.c
index ce28866..793da32 100644
--- a/src/quantiser.c
+++ b/src/quantiser.c
@@ -204,7 +204,6 @@ instantiate(const LV2_Descriptor* descriptor,
return (LV2_Handle)plugin;
}
-#if 0
static void
runQuantiser_audio(LV2_Handle instance,
uint32_t sample_count)
@@ -212,22 +211,22 @@ runQuantiser_audio(LV2_Handle instance,
Quantiser* plugin = (Quantiser*)instance;
/* Range Min (float value) */
- float min = *(plugin->min);
+ const float min = *(plugin->min);
/* Range Max (float value) */
- float max = *(plugin->max);
+ const float max = *(plugin->max);
/* Match Range (float value) */
- float match_range = *(plugin->match_range);
+ const float match_range = *(plugin->match_range);
/* Mode (float value) */
- float mode = *(plugin->mode);
+ const float mode = *(plugin->mode);
/* Count (float value) */
- float count = *(plugin->count);
+ const float count = *(plugin->count);
/* Input (array of float of length sample_count) */
- float* input = plugin->input;
+ const float* input = plugin->input;
/* Values */
float* values[QUANTISER_MAX_INPUTS];
@@ -243,8 +242,6 @@ runQuantiser_audio(LV2_Handle instance,
}
}
-#endif
-
static void
runQuantiser_control(LV2_Handle instance,
uint32_t sample_count)
@@ -252,22 +249,22 @@ runQuantiser_control(LV2_Handle instance,
Quantiser* plugin = (Quantiser*)instance;
/* Range Min (float value) */
- float min = *(plugin->min);
+ const float min = *(plugin->min);
/* Range Max (float value) */
- float max = *(plugin->max);
+ const float max = *(plugin->max);
/* Match Range (float value) */
- float match_range = FABSF(*(plugin->match_range));
+ const float match_range = FABSF(*(plugin->match_range));
/* Mode (float value) */
- float mode = *(plugin->mode);
+ const float mode = *(plugin->mode);
/* Count (float value) */
- float count = *(plugin->count);
+ const float count = *(plugin->count);
/* Input (array of float of length sample_count) */
- float* input = plugin->input;
+ const float* input = plugin->input;
/* Output (array of float of length sample_count) */
float* output = plugin->output;