[LV2] [PATCH 1/5] add eg05-scope example plugin

Robin Gareus robin at gareus.org
Tue Dec 24 09:05:27 PST 2013

On 12/24/2013 05:41 PM, David Robillard wrote:

>> The ->size of the LV2_Atom is only about the payload and does not
>> include the header itself in the count. The original version was
>> correct. fix attached.
> Yes, you're right.  The size calculation was correct but the casts were
> not.  It happened to work out that the data pointer ended up at the
> right place anyway.

Ah. Good catch. Well now, there's good example code that is well
documented, semantically correct and functional. No excuses anymore for
getting this wrong :)


More information about the Devel mailing list