[LAD] intergrating osc
Stephen Sinclair
radarsat1 at gmail.com
Thu Jul 26 17:19:07 UTC 2007
> 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
More information about the Linux-audio-dev
mailing list