I've thought of this possibility but it seems harder to me to handle function pointers then to use the dsp_mod function.
Moreover, what about an extern modifying another extern dsp function ?? I know it's not a current situation and I never had to do this myself, but giving an access to the dsp chain seems to be useful to me.
Cheers,
Yves/
----- Original Message ----- From: "Krzysztof Czaja" czaja@chopin.edu.pl To: "Yves Degoyon" ydegoyon@free.fr Cc: pd-list@iem.kug.ac.at Sent: Saturday, November 17, 2001 6:49 PM Subject: Re: [PD] Modifying "dsp chain" live !!!
hi,
how about using one additional level of indirection, and calling the real routine through a pointer in your `perform' routine?
Krzysztof
Yves Degoyon wrote: ...
but this patch also enables to change the function itself dynamically and, in an extern, eventually to change the dsp function.