Re: [linux-audio-dev] GLAME supports LADSPA now.

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

Subject: Re: [linux-audio-dev] GLAME supports LADSPA now.
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: Wed May 24 2000 - 02:28:15 EEST


>here's roughly the .h file i've been considering.
>
>struct _LadspaControlData {
> char* control_name;
> unsigned input : 1;
> unsigned output : 1;
> unsigned control : 1;
> unsigned audio : 1;
>};
>
>struct _LadspaData {
> char* plugin_name;
> char* author;
> char* copyright;
> int num_controls;
> LadspaControlData* controls;
>};
>
>LadspaDatabase* ladspa_database_new (const char* fname);
>LadspaData* ladspa_plugin_data_find (LadspaDatabase* db,
> const char* name);
>LadspaData* ladspa_plugin_data_find_by_id (LadspaDatabase* db,
> unsigned long unique_id);
>
>/* user-defined key => string maps. */
>const char* ladspa_plugin_data_get_named_key(LadspaData* data,
> const char* key);
>
>/* user-defined key => xmltree maps. */
>const xmlNode* ladspa_plugin_data_get_subtree (LadspaData* data,
> const char* key);
>
>void ladspa_database_destroy (LadspaDatabase* database);
>
>i can implement this in glib + gnome-xml in like 15minutes,
>is this the right api?

questions:

1) what is a LadspaDatabase ?
2) how do I traverse the catalog without knowing its contents ?
       (hint ladspa_database_get_next_datum() ...)
3) ladspa.h names things LADSPA_foo. any reason to do this differently ?

just my $0.02

--p


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

This archive was generated by hypermail 2b28 : Wed May 24 2000 - 02:59:16 EEST