diff options
Diffstat (limited to 'src/triangle.c')
-rw-r--r-- | src/triangle.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/triangle.c b/src/triangle.c index 00964df..0a06f6c 100644 --- a/src/triangle.c +++ b/src/triangle.c @@ -99,10 +99,10 @@ runTriangle_fasa_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (array of float of length sample_count) */ - float* frequency = plugin->frequency; + const float* frequency = plugin->frequency; /* Slope (array of float of length sample_count) */ - float* slope = plugin->slope; + const float* slope = plugin->slope; /* Output (pointer to float value) */ float* output = plugin->output; @@ -149,7 +149,7 @@ runTriangle_fasc_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (array of float of length sample_count) */ - float* frequency = plugin->frequency; + const float* frequency = plugin->frequency; /* Slope (float value) */ float slope = *(plugin->slope); @@ -200,10 +200,10 @@ runTriangle_fcsa_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (float value) */ - float frequency = *(plugin->frequency); + const float frequency = *(plugin->frequency); /* Slope (array of float of length sample_count) */ - float* slope = plugin->slope; + const float* slope = plugin->slope; /* Output (pointer to float value) */ float* output = plugin->output; @@ -247,7 +247,7 @@ runTriangle_fcsc_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (float value) */ - float frequency = *(plugin->frequency); + const float frequency = *(plugin->frequency); /* Slope (float value) */ float slope = *(plugin->slope); |