Re: [LAD] Lv2 port replication [was Re: the role of lv2 extensions]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steve Harris <steve@...>
Cc: linux-audio-dev@lists.linuxaudio.org <linux-audio-dev@...>, <jef@...>
Date: Tuesday, August 11, 2009 - 7:10 pm

On Tue, 2009-08-11 at 19:01 +0100, Steve Harris wrote:

Sold.

> I don't remember offhand whether a float *data[] lets you dereference

Probably not (it would actually be void* anyway), but the header can
provide a nice inline function for this.

> You might actually want a struct of { int channels; float *data[]; }

Good point... this also sets things up to be compatible with
plugin-allocated dynamic output buffers in the future without needing
any hokey mechanism just to say how many are there, which can't hurt.
Maybe we should go a teeny bit further and make the struct extensible,
putting the data pointer first.

Slight overhead in that the number of channels may be shared between
many ports, though.

> Is it possible to specify that a port is both a normal LADSPA Audio

I think the port would probably have to be of the MultiPort type, then
either 1) also of another data type, or 2) have a :contentType predicate
to point to that other type. We certainly don't want a combinatorial
explosion of multi-types. Probably 2) is needed for backwards
compatibility, but I forget the details of the spec here...

> >> example: a DC offset removal plugin for a stereo stream

Well, you'd end up checking the number of channels stored in the
plugin's data anyway, having a case where it's just a plain old buffer
doesn't seem to be that much of an additional nuisance (and the win is
massive).

-dr

P.S. extension and LV2 in general discussions are much more active here
than lv2-dev. I wonder about the benefit of it existing at all...

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

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

Messages in current thread:
Re: [LAD] the role of lv2 extensions, Jeff McClintock, (Mon Aug 10, 9:58 pm)
Re: [LAD] the role of lv2 extensions, David Robillard, (Mon Aug 10, 10:10 pm)
Re: [LAD] Lv2 port replication [was Re: the role of lv2 exte..., David Robillard, (Tue Aug 11, 7:10 pm)
[LAD] Lv2 port replication [for dummies], james morris, (Thu Aug 13, 5:48 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Thu Aug 13, 7:01 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Thu Aug 13, 8:27 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Thu Aug 13, 11:48 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Fri Aug 14, 9:13 am)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Fri Aug 14, 2:57 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Fri Aug 14, 4:09 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Fri Aug 14, 4:31 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Fri Aug 14, 7:02 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Fri Aug 14, 8:47 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Fri Aug 14, 10:42 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Fri Aug 14, 11:36 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Sat Aug 15, 6:26 pm)
Re: [LAD] Lv2 port replication [for dummies], Steve Harris, (Sat Aug 15, 6:34 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Sat Aug 15, 8:27 pm)
Re: [LAD] Lv2 port replication [for dummies], Fons Adriaensen, (Fri Aug 14, 8:56 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Fri Aug 14, 2:29 am)
Re: [LAD] Lv2 port replication [for dummies], Fons Adriaensen, (Thu Aug 13, 9:53 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Thu Aug 13, 11:50 pm)
Re: [LAD] Lv2 port replication [for dummies], james morris, (Thu Aug 13, 10:16 pm)
Re: [LAD] Lv2 port replication [for dummies], Fons Adriaensen, (Thu Aug 13, 11:27 pm)
Re: [LAD] Lv2 port replication [for dummies], David Robillard, (Fri Aug 14, 1:38 am)