[LAD] engine, validation, ui separation,
d at drobilla.net
Fri Mar 4 18:55:06 UTC 2011
On Fri, 2011-03-04 at 11:30 +0000, James Morris wrote:
> Just a quick question, where does validation of parameters belong?
> Invalid params might crash the engine, so some validation should go there.
> But if the job of validation is down to the UI, the engine can be more
> But if multiple UIs are possible, validation effort is duplicated.
> How should I approach?
Plugins must gracefully handle out-of-range values, typically either by
clamping or ignoring. The ranges in LV2 are "soft".
There could be an extension for "hard" limits, as a micro-optimization,
but I don't know if one exists (or if the performance advantage of
avoiding an if or two is worth the hassle).
More information about the Linux-audio-dev