Re: [linux-audio-dev] LADSPA run() blocksize

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] LADSPA run() blocksize
From: David Olofson (david_AT_gardena.net)
Date: Sun Nov 19 2000 - 07:56:22 EET


On Fri, 17 Nov 2000, Steve Harris wrote:
> On Thu, Nov 16, 2000 at 11:49:39PM -0500, Paul Barton-Davis wrote:
> > does anyone have a solution as to how a LADSPA plugin can avoid
> > allocating any internal buffers in run(), when it needs to know the
> > maximum value of the argument to run() and/or run_adding() ?
>
> I was thinking about this on my way to work, but I couldn't think of a
> situation when you needed to know.
>
> You can always just chop input[] into <= buffer[] sized chunks to do your
> processing. Might be a bit slower, but *shrug*.

Should work, although it would make life easier on the plugin coder
relying on the host to decide on a maximum buffer size... (If
worried about buffers vs. cache size, buffers should be kept
reasonable short anyway, so plugins with internal buffers should
scale automatically that way.)

//David

.- M u C o S -------------------------. .- David Olofson --------.
| A Free/Open Source | | Audio Hacker |
| Plugin and Integration Standard | | Linux Advocate |
| for | | Open Source Advocate |
| Professional and Consumer | | Singer |
| Multimedia | | Songwriter |
`-----> http://www.linuxdj.com/mucos -' `---> david_AT_linuxdj.com -'


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Nov 19 2000 - 08:41:56 EET