Re: [LAD] LADSPA dilemma

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Fri Jun 15 2007 - 12:50:45 EEST

On Fri, Jun 15, 2007 at 11:30:22AM +0200, Tim Goetze wrote:

> [Fons Adriaensen]
> >The simple solution is not to use any control param values in activate(),
> >but some defaults that are within range. Then in the first process()
> >you sweep from these to the ones derived from the actual control params
> >which must be valid at that time.
>
> But, but ... the sweep during the first block of audio is precisely
> what I'm trying to avoid!

Since LADSPA does not specifiy that control values are valid at
activate(), either

1. the first sweep has to start from defaults,
2. or it has to be replaced by a jump to the current control values.

For 2. keep a boolean indicating that the current control values
are valid and can be used as the starting point for interpolation.
Reset in activate(), set in each process().

-- 
FA
Follie! Follie! Delirio vano è questo !
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Fri Jun 15 16:15:02 2007

This archive was generated by hypermail 2.1.8 : Fri Jun 15 2007 - 16:15:02 EEST