Re: [LAD] intergrating osc

From: Stephen Sinclair <radarsat1@email-addr-hidden>
Date: Thu Jul 26 2007 - 20:19:07 EEST

> Associate each fader with a callback, or alternatively create a
> generic_handler() type callback and use the "path" variable to
> differentiate. You could, for example, write a single callback, but
> associate multiple messages to the same callback. In the callback,
> use "path" to figure out which fader has been specified. It depends
> how dynamic your program is. If the number of faders is hard-coded,
> it may be simpler to have a callback for each one.

I should have mentioned here that of course you also have a
"user_data" variable available for the callbacks. So you can register
the same callback function for several faders but differentiate them
by sending a different pointer or index in the user_data variable for
each fader.

Steve
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Fri Jul 27 00:15:01 2007

This archive was generated by hypermail 2.1.8 : Fri Jul 27 2007 - 00:15:01 EEST