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

From: fons adriaensen <fons.adriaensen@email-addr-hidden>
Date: Wed Oct 05 2005 - 02:39:35 EEST

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
Received on Wed Oct 5 04:15:05 2005

This archive was generated by hypermail 2.1.8 : Wed Oct 05 2005 - 04:15:05 EEST