I need to pass a string from the UI to the plugin. From the eg-sample, it appears that an LV2 atom should be written to a atom port.
If I understand it correctly
First allocate a
LV2_Atom_Forge
. May that object be on the stack or does it have to survive after the UI event callback has returned?Call
lv2_atom_forge_set_buffer
. How do I know the required size of the buffer? The example sets it to 1024 bytes for no reason. May the buffer be allocated on the stack or does it have to survive the UI after the UI event callback has returned?