Subject: Re: [linux-audio-dev] LADSPA Update, New Project (CMT) & Help Requested
From: Juhana Sadeharju (kouhia_AT_nic.funet.fi)
Date: Fri May 05 2000 - 10:22:48 EEST
>From: "Richard W.E. Furse" <richard_AT_muse.demon.co.uk>
>
>Ooo. Good point about memory management and descriptors - the assumption
>I've been working with is that the plugin library will handle all the
>required memory access (i.e. the structures will probably be allocated once
>globally). The plugin examples do this,
I read the other reply on this matter too, and I simply don't understand.
The delay.c clearly mallocs the descriptor strings etc. at the time
the host calls ladspa_descriptor(). This happens when the example host
searches for the correct Label. If there are 10 labels, then at most 9
descriptors are malloced unnecessary. If later the host searches again
for another label it can happen that 8 more unnecessary descriptors are
malloced.
Another point: who sets and frees the
void * ImplementationData;
structure of Descriptor? Both delay.c and filter.c don't do it, and
host cannot even check if something is there or not.
Also, since plug-in doesn't free the descriptor structure (and thus
ImplementationData) and because host cannot even guess the content of
the ImplementationData, the ImplementationData is left unfreed in any
case even host knows the Descriptor structure and can free it.
>SDK. Hopefully your concerns about counting are reduced by this. [Hmm. Do I
>need to worry about this?]
I think no. The common way is to check all descriptors, put them to list,
and let user interactively choose from them. They all need to be loaded
to software anyway.
>I'll check out dlsym() more carefully.
I'm not sure if the NULL is invalid. At least one GNU mmap alloc routine
checks the NULL case as well. Maybe data areas are different from functions,
or OSes are different...
-*-
Can you put everything in the LADSPA webpages to SDK package? Following
files are missing:
Linkname: LADSPA SDK Documentation
URL: http://www.muse.demon.co.uk/ladspa/index.html
Linkname: Linux Audio Developer's Simple Plugin API (LADSPA)
URL: http://www.muse.demon.co.uk/ladspa.html
Just for completeness. You could also mention that all relevant info is
already in the package so that downloaders doesn't have to find it out.
Juhana
This archive was generated by hypermail 2b28 : Fri May 05 2000 - 11:08:25 EEST