lv2 host buffersize
gm-linuxaudio.privatize920-OGrP24aSwZHk1uMJSBkQmQ@public.gmane.org Mon, 15 Jun 2026 11:56:46 +0200
| Newsgroups | gmane.linux.audio.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Im at a loss trying to understand how to access runtime parameters in
an lv2 plugin at init time. Specifically the buffer size.
I understand the concept of the LV2_URIDs and have mapped the resource
LV2_BUF_SIZE__maxBlockLength to its urid:
typedef struct {
LV2_URID_Map *map;
LV2_URID samplerate;
LV2_URID buffersize;
} GuitarMidiURIDs;
static void map_options(LV2_URID_Map *map, GuitarMidiURIDs *urids)
{
urids->map =3D map;
urids->samplerate =3D map->map(map->handle,
LV2_CORE__sampleRate);
urids->buffersize =3D map->map(map->handle,
LV2_BUF_SIZE__maxBlockLength);
}
Now I cant find in the examples how to actually get the buffersize
given urids->buffersize. Can someone point me to a plugin where this is
achieved?=20
Thanks,
Gerald