Re: [LAD] "enhanced event port" LV2 extension proposal

From: Dave Robillard <drobilla@email-addr-hidden>
Date: Fri Nov 30 2007 - 02:12:04 EET

On Thu, 2007-11-29 at 10:00 +0000, Krzysztof Foltman wrote:
> Dave Robillard wrote:
>
> > IP doesn't dictate packet contents whatsoever. It does what it needs to
> > do quite well, I don't think it's crufy at all. It would be crufty if
> > it tried to define, say HTTP error codes...
>
> That's right. Lars addressed that criticism pretty well, I think. The
> "evolved" proposal is both keeping headers and data in the same place
> and keeping event semantics on separate layer from event transport.

? This is how LV2 MIDI always has been, and is exactly what I meant in
my initial reply.

> > Please look at the definition of the LV2_MIDI struct in lv2-midiport.h.
> > Note the char* parameter, and read it's comment. The buffer is flat,
> > there is no cache thrashing or any such issues here whatsoever.
>
> Here it comes:
>
> char* buf; ///< raw event data
>
> Maybe you meant to write this?
>
> char buf[]; ///< raw event data directly follow here

This is very clearly and explicitly documented in the header (which I
didn't write, BTW)

> Because char* usually means, you know, a pointer, not a variable length
> array :)

.... char buf[] is, you know, equivalent to char* buf. You do know C,
yes? ;)

-DR-

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Fri Nov 30 04:15:04 2007

This archive was generated by hypermail 2.1.8 : Fri Nov 30 2007 - 04:15:04 EET