| Hi all,
I just replaced jpff_glue.c with csound.c in my local csound4 build as I
was working with an opcode library and the build I had with jpff_glue.c
gave me "DO NOT USE THIS INTERFACE" at the k-rate, which was a lot of
messages. (!) So, just thought I'd mention that and ask should we move
over to using csound.c? The changes were only a couple of code snippets
from jpff_glue.c:
#if !defined(CWIN) && !defined(MACOSX)
extern OPARMS O_;
extern GLOBALS cglob_;
void csoundMessage(void *, const char *, ...);
extern void remove_tmpfiles(void); /* IV - Oct 31 2002 */
#if !defined(FLTK_GUI) && !defined(mills_macintosh)
int main(int argc, char **argv)
{
extern int csoundMain(void*, int, char**);
O = O_;
cglob = cglob_;
atexit(remove_tmpfiles); /* IV - Oct 31 2002 */
return csoundMain(NULL, argc, argv);
}
#endif
#endif
--AND--
void *csoundOpenLibrary(const char *libraryPath)
{
printf("DO NOT USE THIS INTERFACE\n");
return NULL;
}
void *csoundCloseLibrary(void *library)
{
printf("DO NOT USE THIS INTERFACE\n");
return NULL;
}
void *csoundGetLibrarySymbol(void *library, const char *procedureName)
{
printf("DO NOT USE THIS INTERFACE\n");
return NULL;
}
I haven't spent the time to see what the differences were, but those
were the changes I needed to do to get everything all linked up
correctly.
Regarding opcode-libraries, I've gotten Michael Gogins' fluid opcode-lib
working with csound4 and am planning to get to compile the loris opcode
as an opcode lib. I thought it would be good to get a draft going
between us all for a "how to compile an opcode library" tutorial,
perhaps something that can eventually be added to the "Adding your own
CModules" section of the reference manual or as another section in its
own right. Also, I thought it might be of interest to have a very
basic skeleton example plugin that would come with the tutorial, as well
as include a template Makefile. Something of a plugin SDK if you will.
Perhaps it's a bit premature, but it seems like something to get
started. (I'll try to write up a mini-tutorial sometime to get the ball
rolling.)
Thanks all,
steven
|