aboutsummaryrefslogtreecommitdiffstats
path: root/src/pulse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse.c')
-rw-r--r--src/pulse.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pulse.c b/src/pulse.c
index 722527b..8890fbd 100644
--- a/src/pulse.c
+++ b/src/pulse.c
@@ -94,10 +94,10 @@ runPulse_fapa_oa(LV2_Handle instance,
Pulse* plugin = (Pulse*)instance;
/* Frequency (array of float of length sample_count) */
- float* frequency = plugin->frequency;
+ const float* frequency = plugin->frequency;
/* Pulse Width (array of float of length sample_count) */
- float* pulsewidth = plugin->pulsewidth;
+ const float* pulsewidth = plugin->pulsewidth;
/* Output (pointer to float value) */
float* output = plugin->output;
@@ -142,10 +142,10 @@ runPulse_fapc_oa(LV2_Handle instance,
Pulse* plugin = (Pulse*)instance;
/* Frequency (array of float of length sample_count) */
- float* frequency = plugin->frequency;
+ const float* frequency = plugin->frequency;
/* Pulse Width (float value) */
- float pulsewidth = f_clip(*(plugin->pulsewidth), 0.0f, 1.0f);
+ const float pulsewidth = f_clip(*(plugin->pulsewidth), 0.0f, 1.0f);
/* Output (pointer to float value) */
float* output = plugin->output;
@@ -188,10 +188,10 @@ runPulse_fcpa_oa(LV2_Handle instance,
Pulse* plugin = (Pulse*)instance;
/* Frequency (float value) */
- float frequency = *(plugin->frequency);
+ const float frequency = *(plugin->frequency);
/* Pulse Width (array of float of length sample_count) */
- float* pulsewidth = plugin->pulsewidth;
+ const float* pulsewidth = plugin->pulsewidth;
/* Output (pointer to float value) */
float* output = plugin->output;
@@ -233,10 +233,10 @@ runPulse_fcpc_oa(LV2_Handle instance,
Pulse* plugin = (Pulse*)instance;
/* Frequency (float value) */
- float frequency = *(plugin->frequency);
+ const float frequency = *(plugin->frequency);
/* Pulse Width (float value) */
- float pulsewidth = f_clip(*(plugin->pulsewidth), 0.0f, 1.0f);
+ const float pulsewidth = f_clip(*(plugin->pulsewidth), 0.0f, 1.0f);
/* Output (pointer to float value) */
float* output = plugin->output;