No problem, it is only an example and like the original csound6/frontends/csound_main.c static void msg_callback(CSOUND *csound, int attr, const char *format, va_list args) { ... } called in main() tito On Fri, Apr 27, 2012 at 01:14:59PM -0400, Michael Gogins wrote: > This is not correct, it implies a static callback, the callback must not be > static. It is possible to imagine a use where several instances of Csound > run in one process, and each one needs a different message callback. > > But if this is just for a DEFAULT callback that can be separately replaced > for each of several instances of Csound in one address space, then it is OK. > > Regards, > Mike > > On Fri, Apr 27, 2012 at 11:28 AM, Tito Latini wrote: > > > Applied: > > - removed `csoundPreCompile' > > - added `csoundSetDefaultMessageCallback' > > > > Tested with: > > > > static void msg_callback(CSOUND *csound, > > int attr, const char *format, va_list args) > > { > > (void) csound; > > printf("===================="); > > vfprintf(stderr, format, args); > > } > > > > csoundSetDefaultMessageCallback(msg_callback); > > csound = csoundCreate(0); > > ... > > > > tito > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Csound-devel mailing list > > Csound-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > > -- > Michael Gogins > Irreducible Productions > http://www.michael-gogins.com > Michael dot Gogins at gmail dot com > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net