diff options
Diffstat (limited to 'src/pulse.c')
-rw-r--r-- | src/pulse.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pulse.c b/src/pulse.c index bffe4ea..b59caf8 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -28,14 +28,14 @@ #define PULSE_OUTPUT 2 typedef struct { - float* frequency; - float* pulsewidth; - float* output; - float phase; - uint32_t frequency_is_cv; - uint32_t pulsewidth_is_cv; - Wavedata wdat; - URIs uris; + const float* frequency; + const float* pulsewidth; + float* output; + float phase; + uint32_t frequency_is_cv; + uint32_t pulsewidth_is_cv; + Wavedata wdat; + URIs uris; } Pulse; static void @@ -47,10 +47,10 @@ connect_port(LV2_Handle instance, switch (port) { case PULSE_FREQUENCY: - plugin->frequency = (float*)data; + plugin->frequency = (const float*)data; break; case PULSE_PULSEWIDTH: - plugin->pulsewidth = (float*)data; + plugin->pulsewidth = (const float*)data; break; case PULSE_OUTPUT: plugin->output = (float*)data; |