diff options
Diffstat (limited to 'src/sync_pulse.c')
-rw-r--r-- | src/sync_pulse.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sync_pulse.c b/src/sync_pulse.c index 719115f..b1be0ac 100644 --- a/src/sync_pulse.c +++ b/src/sync_pulse.c @@ -30,15 +30,15 @@ #define SYNCPULSE_OUTPUT 3 typedef struct { - float* frequency; - float* pulsewidth; - float* gate; - float* output; - float srate; - float phase; - uint32_t frequency_is_cv; - uint32_t pulsewidth_is_cv; - URIs uris; + const float* frequency; + const float* pulsewidth; + const float* gate; + float* output; + float srate; + float phase; + uint32_t frequency_is_cv; + uint32_t pulsewidth_is_cv; + URIs uris; } SyncPulse; static void @@ -56,13 +56,13 @@ connect_port(LV2_Handle instance, switch (port) { case SYNCPULSE_FREQUENCY: - plugin->frequency = (float*)data; + plugin->frequency = (const float*)data; break; case SYNCPULSE_PULSEWIDTH: - plugin->pulsewidth = (float*)data; + plugin->pulsewidth = (const float*)data; break; case SYNCPULSE_GATE: - plugin->gate = (float*)data; + plugin->gate = (const float*)data; break; case SYNCPULSE_OUTPUT: plugin->output = (float*)data; @@ -133,7 +133,7 @@ run(LV2_Handle instance, const float* frequency = plugin->frequency; /* Pulse Width (array of float of length sample_count) */ - float* pulsewidth = plugin->pulsewidth; + const float* pulsewidth = plugin->pulsewidth; /* Gate (array of float of length sample_count) */ const float* gate = plugin->gate; |