diff options
Diffstat (limited to 'src/sawtooth.c')
-rw-r--r-- | src/sawtooth.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sawtooth.c b/src/sawtooth.c index 7106830..8667f73 100644 --- a/src/sawtooth.c +++ b/src/sawtooth.c @@ -27,12 +27,12 @@ #define SAWTOOTH_OUTPUT 1 typedef struct { - float* frequency; - float* output; - float phase; - uint32_t frequency_is_cv; - Wavedata wdat; - URIs uris; + const float* frequency; + float* output; + float phase; + uint32_t frequency_is_cv; + Wavedata wdat; + URIs uris; } Sawtooth; static void @@ -44,7 +44,7 @@ connect_port(LV2_Handle instance, switch (port) { case SAWTOOTH_FREQUENCY: - plugin->frequency = (float*)data; + plugin->frequency = (const float*)data; break; case SAWTOOTH_OUTPUT: plugin->output = (float*)data; |