aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-12-03 23:01:19 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-12-03 23:01:19 +0100
commit54de16fcd5a1f6904eb7b89bf5aaf9b3f4e9175c (patch)
treea6029dea5a2026328fb36e6634b76201a4731e84 /atom_inspector.c
parentcd9b98d8931d4049e536743e842294a6b7bb93d1 (diff)
downloadsherlock.lv2-54de16fcd5a1f6904eb7b89bf5aaf9b3f4e9175c.tar.xz
prototype osc_inspector and midi_inspector.
Diffstat (limited to 'atom_inspector.c')
-rw-r--r--atom_inspector.c27
1 files changed, 4 insertions, 23 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 3df5f22..c8cb63e 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -77,13 +77,6 @@ connect_port(LV2_Handle instance, uint32_t port, void *data)
}
static void
-activate(LV2_Handle instance)
-{
- handle_t *handle = (handle_t *)instance;
- //nothing
-}
-
-static void
run(LV2_Handle instance, uint32_t nsamples)
{
handle_t *handle = (handle_t *)instance;
@@ -120,6 +113,7 @@ run(LV2_Handle instance, uint32_t nsamples)
lv2_atom_forge_pad(forge, size);
}
+
if(ref)
lv2_atom_forge_pop(forge, &frame);
else
@@ -127,13 +121,6 @@ run(LV2_Handle instance, uint32_t nsamples)
}
static void
-deactivate(LV2_Handle instance)
-{
- handle_t *handle = (handle_t *)instance;
- //nothing
-}
-
-static void
cleanup(LV2_Handle instance)
{
handle_t *handle = (handle_t *)instance;
@@ -141,19 +128,13 @@ cleanup(LV2_Handle instance)
free(handle);
}
-static const void*
-extension_data(const char* uri)
-{
- return NULL;
-}
-
const LV2_Descriptor atom_inspector = {
.URI = SHERLOCK_ATOM_INSPECTOR_URI,
.instantiate = instantiate,
.connect_port = connect_port,
- .activate = activate,
+ .activate = NULL,
.run = run,
- .deactivate = deactivate,
+ .deactivate = NULL,
.cleanup = cleanup,
- .extension_data = extension_data
+ .extension_data = NULL
};