diff options
Diffstat (limited to 'src/fast_crossfade.c')
-rw-r--r-- | src/fast_crossfade.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fast_crossfade.c b/src/fast_crossfade.c index 228efb4..076b10f 100644 --- a/src/fast_crossfade.c +++ b/src/fast_crossfade.c @@ -58,23 +58,24 @@ instantiate(const LV2_Descriptor* descriptor, /* Connect a port to a data location */ static void connect_port(LV2_Handle instance, - uint32_t port, void* location) + uint32_t port, + void* data) { XFADE* plugin; plugin = (XFADE*) instance; switch (port) { case XFADE_LEVEL: - plugin->level_buffer = location; + plugin->level_buffer = (float*)data; break; case XFADE_A: - plugin->a_buffer = location; + plugin->a_buffer = (float*)data; break; case XFADE_B: - plugin->b_buffer = location; + plugin->b_buffer = (float*)data; break; case XFADE_OUTPUT: - plugin->output_buffer = location; + plugin->output_buffer = (float*)data; break; } } |