aboutsummaryrefslogtreecommitdiffstats
path: root/src/quantiser.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-02 00:11:31 +0000
committerDavid Robillard <d@drobilla.net>2012-08-02 00:11:31 +0000
commit3ddfa2d12e95d927f9ccdce1df93b93922bfa221 (patch)
tree31e10eefed53b8ce55627e3dffc16a54417594d8 /src/quantiser.c
parentfad5bc6aab40cd4a03dbd0934061fd1182ca2b6d (diff)
downloadblop.lv2-3ddfa2d12e95d927f9ccdce1df93b93922bfa221.tar.gz
blop.lv2-3ddfa2d12e95d927f9ccdce1df93b93922bfa221.tar.bz2
blop.lv2-3ddfa2d12e95d927f9ccdce1df93b93922bfa221.zip
Compile cleanly as C++.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4587 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/quantiser.c')
-rw-r--r--src/quantiser.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/quantiser.c b/src/quantiser.c
index 8607359..ccf9fb3 100644
--- a/src/quantiser.c
+++ b/src/quantiser.c
@@ -170,32 +170,32 @@ connect_port(LV2_Handle instance,
switch (port) {
case QUANTISER_RANGE_MIN:
- plugin->min = data;
+ plugin->min = (float*)data;
break;
case QUANTISER_RANGE_MAX:
- plugin->max = data;
+ plugin->max = (float*)data;
break;
case QUANTISER_MATCH_RANGE:
- plugin->match_range = data;
+ plugin->match_range = (float*)data;
break;
case QUANTISER_MODE:
- plugin->mode = data;
+ plugin->mode = (float*)data;
break;
case QUANTISER_COUNT:
- plugin->count = data;
+ plugin->count = (float*)data;
break;
case QUANTISER_INPUT:
- plugin->input = data;
+ plugin->input = (float*)data;
break;
case QUANTISER_OUTPUT:
- plugin->output = data;
+ plugin->output = (float*)data;
break;
case QUANTISER_OUTPUT_CHANGED:
- plugin->output_changed = data;
+ plugin->output_changed = (float*)data;
break;
default:
if (port >= QUANTISER_VALUE_START && port < QUANTISER_OUTPUT) {
- plugin->values[port - QUANTISER_VALUE_START] = data;
+ plugin->values[port - QUANTISER_VALUE_START] = (float*)data;
}
break;
}