[linux-audio-dev] Re: MVC - multiple CV

fons adriaensen fons.adriaensen at skynet.be
Tue Oct 4 23:39:35 UTC 2005


On Tue, Oct 04, 2005 at 06:52:27PM -0400, Paul Davis wrote:

> > > You'll also want some logic in the M that says "if I receive a change that 
> > > tells me to go to my current value, then don't send updates to anyone".
> > 
> > This should be a rare occurence, so I wonder if it's worth the extra code.
> 
> that was precisely what my code did, though :)

>From your code

>    void change_my_view_state_value (float newval)
>    {
>        if (my_view_state->value != newval) {
>           my_view_state->value = newval;
>           send_change_to_model (my_view_state->value);
>        }
>    }

you are doing this in V, while the suggestion I commented on was to do this
in M.

-- 
FA



More information about the Linux-audio-dev mailing list