aboutsummaryrefslogtreecommitdiffstats
path: root/src/interpolator.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-31 06:23:57 +0000
committerDavid Robillard <d@drobilla.net>2012-05-31 06:23:57 +0000
commit7b20413c84b14d2c2bc1037bb08134dcdf152ddb (patch)
treec7c339d6c4d0d26b01e654163e7a8a203f62baf4 /src/interpolator.c
parent46caaf6b96f185a4a25d1d12fc85720a03220e97 (diff)
downloadblop.lv2-7b20413c84b14d2c2bc1037bb08134dcdf152ddb.tar.gz
blop.lv2-7b20413c84b14d2c2bc1037bb08134dcdf152ddb.tar.bz2
blop.lv2-7b20413c84b14d2c2bc1037bb08134dcdf152ddb.zip
Umm... commit pretty much all the work of the past few days. Again.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4488 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/interpolator.c')
-rw-r--r--src/interpolator.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/interpolator.c b/src/interpolator.c
index 52a6c37..24fa927 100644
--- a/src/interpolator.c
+++ b/src/interpolator.c
@@ -79,6 +79,9 @@ instantiate(const LV2_Descriptor* descriptor,
const LV2_Feature* const* features)
{
Interpolator* plugin = (Interpolator*)malloc(sizeof(Interpolator));
+ if (!plugin) {
+ return NULL;
+ }
return (LV2_Handle)plugin;
}
@@ -93,8 +96,8 @@ activate(LV2_Handle instance)
}
static void
-runInterpolator(LV2_Handle instance,
- uint32_t sample_count)
+run(LV2_Handle instance,
+ uint32_t sample_count)
{
Interpolator* plugin = (Interpolator*)instance;
@@ -121,11 +124,11 @@ runInterpolator(LV2_Handle instance,
}
static const LV2_Descriptor descriptor = {
- "http://drobilla.net/plugins/blip/interpolator",
+ "http://drobilla.net/plugins/blop/interpolator",
instantiate,
connect_port,
activate,
- runInterpolator,
+ run,
NULL,
cleanup,
NULL,