diff options
author | David Robillard <d@drobilla.net> | 2016-07-31 18:03:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-31 18:03:25 -0400 |
commit | 4686e5199e359425fb11013ebf75dab423db3f8c (patch) | |
tree | d9913cf94779b7d72ee98de85ebf3fa87c128143 /src/adenv_lvl.c | |
parent | 3e3b61724b16437a3181e80fcb75cc6f6b0a97ba (diff) |
Fix compilation with C++
Diffstat (limited to 'src/adenv_lvl.c')
-rw-r--r-- | src/adenv_lvl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/adenv_lvl.c b/src/adenv_lvl.c index 2c57530..021e0ee 100644 --- a/src/adenv_lvl.c +++ b/src/adenv_lvl.c @@ -79,31 +79,31 @@ connect_port(LV2_Handle instance, switch (port) { case ADENVLVL_GATE: - plugin->gate = data; + plugin->gate = (float*)data; break; case ADENVLVL_TRIGGER: - plugin->trigger = data; + plugin->trigger = (float*)data; break; case ADENVLVL_START_LEVEL: - plugin->start_level = data; + plugin->start_level = (float*)data; break; case ADENVLVL_ATTACK_LEVEL: - plugin->attack_level = data; + plugin->attack_level = (float*)data; break; case ADENVLVL_DECAY_LEVEL: - plugin->decay_level = data; + plugin->decay_level = (float*)data; break; case ADENVLVL_ATTACK: - plugin->attack = data; + plugin->attack = (float*)data; break; case ADENVLVL_DECAY: - plugin->decay = data; + plugin->decay = (float*)data; break; case ADENVLVL_RESET: - plugin->reset = data; + plugin->reset = (float*)data; break; case ADENVLVL_OUTPUT: - plugin->output = data; + plugin->output = (float*)data; break; } } |