RE: [linux-audio-dev] LADSPA 1.1

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

Subject: RE: [linux-audio-dev] LADSPA 1.1
From: Richard W.E. Furse (richard_AT_muse.demon.co.uk)
Date: Wed Jan 16 2002 - 22:42:02 EET


Okay, I'll try to find time to sort this one out. Do you need it right now,
or can I leave it for a bit? I'd prefer to do it very slightly differently
(I'd prefer not to use so many bits plus ideally I'd also like to be able to
specify default values).

--Richard

> -----Original Message-----
> From: owner-linux-audio-dev_AT_music.columbia.edu
> [mailto:owner-linux-audio-dev_AT_music.columbia.edu]On Behalf Of Steve
> Harris
> Sent: 16 January 2002 15:27
> To: Linux-audio-dev
> Subject: [linux-audio-dev] LADSPA 1.1
>
>
> Late last year there was some discussion about LADSPA 1.1, the defaults
> issue still needs resolving, so can we agree on it?
>
> Paul's suggested addition to handle defaults looks like:
>
> ----------------------------------------------------------------------
> /* Hint LADSPA_HINT_DEFAULT_* indicates that in the absence of
> other information (such as a preset or user preferences) a port
> should be set to the suggested initial value. Notice that this
> hint is valid only for control ports, and should not be set for
> audio ports (hosts should ignore it if it is).
>
> HINT_DEFAULT_{MIN,MID,MAX} all require that the HintDescriptor
> has HINT_BOUNDED_ABOVE and/or HINT_BOUNDED_BELOW set, as required
> to compute the default value.
> */
>
> #define LADSPA_HINT_DEFAULT_ZERO 0x40 /* set to 0.0 */
> #define LADSPA_HINT_DEFAULT_ONE 0x80 /* set to 1.0 */
> #define LADSPA_HINT_DEFAULT_MIN 0x100 /* set to min */
> #define LADSPA_HINT_DEFAULT_MID 0x200 /* set to
> min+(max-min/2) */
> #define LADSPA_HINT_DEFAULT_MAX 0x400 /* set to max */
>
> #define LADSPA_IS_HINT_DEFAULT_ZERO ((x) & LADSPA_HINT_DEFAULT_ZERO)
> #define LADSPA_IS_HINT_DEFAULT_ONE ((x) & LADSPA_HINT_DEFAULT_ONE)
> #define LADSPA_IS_HINT_DEFAULT_MIN ((x) & LADSPA_HINT_DEFAULT_MIN)
> #define LADSPA_IS_HINT_DEFAULT_MID ((x) & LADSPA_HINT_DEFAULT_MID)
> #define LADSPA_IS_HINT_DEFAULT_MAX ((x) & LADSPA_HINT_DEFAULT_MAX)
>
> ----------------------------------------------------------------------
>
> I think this is fine. It's backward compatible (1.1 plugins will work fine
> in a 1.0 host and vice versa). It will solve a lot of host problems.
>
> No riders please! Except, maybe... ;)
>
> - Steve


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

This archive was generated by hypermail 2b28 : Wed Jan 16 2002 - 22:39:51 EET