[LV2] Buffersize, Options and Externtion-Data
David Robillard
d at drobilla.net
Wed Sep 9 18:32:00 PDT 2015
On Wed, 2015-09-09 at 23:21 +0200, hermann meyer wrote:
> Am 09.09.2015 23:15, schrieb David Robillard:
> > I am not a fan of adding weird crap to the spec because ardour uses a
> > fixed maximum because of analysis. Plugins will all be allocating 8192
> > buffers regardless of block size. Maybe we don't care about memory all
> > that much these days, but.... ugh.
> Exactly what I said on IRC, what is it worth to provide this value other
> then waste resources?
I do not understand your confusion about maximum buffer size.
The maximum buffer size is provided - rather blatantly obviously - so
that the plugins have an upper bound on the size that will be passed to
run() so they can allocate buffers large enough to fit a cycle (or some
number of cycles). Without that bound, it is impossible to do so, and
you are screwed if a cycle longer than whatever arbitrary 'maximum' you
assumed comes along.
It is not a waste of resources since, by definition, the plugin might
need those resources. That is the whole point.
--
dr
More information about the Devel
mailing list