Re: [LAD] minimal LV2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <fons@...>
Cc: Linux Audio Developers <linux-audio-dev@...>
Date: Sunday, June 13, 2010 - 3:09 am

On Sun, 13 Jun 2010, fons@kokkinizita.net wrote:

> Can an LV2 extension redefine everything except the

Pretty much, yes. Here's how:

When you instantiate the plugin (LV2_Descriptor::instantiate) you pass
an array of LV2_Feature structs. This struct is very simple:

typedef struct _LV2_Feature {
const char * URI;
void * data;
} LV2_Feature;

The `data` pointer can be a pointer to /anything/... but it should be
clearly defined, according to the URI.

Also, there is the function LV2_Descriptor::extension_data that allows
the Host to query the plugin for additional 'extension data.'

It doesn't take a lot of imagination to see that this could be used to
define a whole different class of plugin API's that would fit within
this... and that these mechanisms themselves are not too different
from the basic LV2 discovery fuction: lv2_descriptor().

Port descriptions are also done by extensions, seeing as how the port
parameter for LV2_Descriptor::connect_port is simply a void* pointer
(i.e. anything).

However, I don't see many options for redefining how
LV2_Descriptor::run is called. About the only way to redefine this
would be to create an empty run() method and have your subversive
sub-plugin API define an alternate one.

hth,
gabriel
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] minimal LV2, , (Sat Jun 12, 10:25 pm)
Re: [LAD] minimal LV2, Igor Brkic, (Sat Jun 12, 11:13 pm)
Re: [LAD] minimal LV2, Olivier Guilyardi, (Sun Jun 13, 3:46 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Sat Jun 12, 10:40 pm)
Re: [LAD] minimal LV2, , (Sat Jun 12, 11:06 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Sat Jun 12, 11:13 pm)
Re: [LAD] minimal LV2, Steve Harris, (Sat Jun 12, 11:10 pm)
Re: [LAD] minimal LV2, , (Sat Jun 12, 11:26 pm)
Re: [LAD] minimal LV2, Steve Harris, (Sun Jun 13, 10:55 am)
Re: [LAD] minimal LV2, Jeremy, (Sun Jun 13, 4:58 pm)
Re: [LAD] minimal LV2, , (Sun Jun 13, 8:22 pm)
Re: [LAD] minimal LV2, Steve Harris, (Mon Jun 14, 7:04 am)
Re: [LAD] minimal LV2, , (Mon Jun 14, 10:04 am)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Mon Jun 14, 11:27 am)
Re: [LAD] minimal LV2, Steve Harris, (Mon Jun 14, 11:25 am)
Re: [LAD] minimal LV2, , (Mon Jun 14, 12:59 pm)
Re: [LAD] minimal LV2, Ralf Mardorf, (Mon Jun 14, 11:52 am)
Re: [LAD] minimal LV2, Paul Davis, (Sun Jun 13, 9:08 pm)
Re: [LAD] minimal LV2, Jeremy, (Mon Jun 14, 12:23 am)
Re: [LAD] minimal LV2, Geoff Beasley, (Mon Jun 14, 12:46 am)
Re: [LAD] minimal LV2, , (Mon Jun 14, 11:54 am)
Re: [LAD] minimal LV2, alex stone, (Mon Jun 14, 12:06 pm)
Re: [LAD] minimal LV2, , (Mon Jun 14, 12:53 pm)
Re: [LAD] minimal LV2, alex stone, (Mon Jun 14, 12:55 pm)
Re: [LAD] minimal LV2, Patrick Shirkey, (Mon Jun 14, 7:34 am)
Re: [LAD] minimal LV2, alex stone, (Mon Jun 14, 8:55 am)
Re: [LAD] minimal LV2, , (Sun Jun 13, 9:40 pm)
Re: [LAD] minimal LV2, drew Roberts, (Mon Jun 14, 3:14 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Mon Jun 14, 3:39 pm)
Re: [LAD] minimal LV2, , (Mon Jun 14, 9:15 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Mon Jun 14, 10:15 pm)
Re: [LAD] minimal LV2, Paul Davis, (Sun Jun 13, 10:02 pm)
Re: [LAD] minimal LV2, Olivier Guilyardi, (Sun Jun 13, 10:36 pm)
Re: [LAD] minimal LV2, James Morris, (Sun Jun 13, 8:51 pm)
Re: [LAD] minimal LV2, Steve Harris, (Mon Jun 14, 6:31 am)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Sun Jun 13, 3:09 am)
Re: [LAD] minimal LV2, , (Sun Jun 13, 1:04 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Sun Jun 13, 4:09 pm)
Re: [LAD] minimal LV2, Paul Davis, (Sun Jun 13, 1:11 pm)
Re: [LAD] minimal LV2, , (Sun Jun 13, 1:43 pm)
Re: [LAD] minimal LV2, alex stone, (Sun Jun 13, 2:48 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Sun Jun 13, 2:10 am)
Re: [LAD] minimal LV2, , (Sat Jun 12, 11:03 pm)
Re: [LAD] minimal LV2, Gabriel M. Beddingfield, (Sat Jun 12, 11:07 pm)