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 [email protected] http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
