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 - 03:05:28 EEST
>From: "Richard W.E. Furse" <richard_AT_muse.demon.co.uk>
>
>((3) LADSPA needs better user and development documentation.)
Yes. The comments in the plug-in are not enough for developers.
I will check if I learn anything worth of documenting while writing
LADSPA support to my software.
-*-
I noticed that both analyseplugin.c and applyplugin.c doesn't free the
descriptor structures. It could be a good to make a proper cleaning in
these examples.
If I just want to know how many labels the plug-in has, do I really
need to get every descriptor (plenty of mallocs and frees)?
It would be nice to have a function which tells how many there are,
or have the ladspa_descriptor(unsigned long Index) return the number
of labels when Index == -1.
-*-
A minor thing: dlsym() on error seems to need more code than written
in example hosts. See dlsym() manual page. My code is following:
func = dlsym(dlhandle,"ladspa_descriptor");
if (func == NULL) {
/* check if we really got an error */
error = dlerror(); /* save because next call to dlerror() returns NULL */
if (error != NULL) {
/* my error code deleted */
}
/* else the NULL is a valid function address */
}
Juhana
This archive was generated by hypermail 2b28 : Fri May 05 2000 - 03:41:01 EEST