| I appreciate the work you're doing with Csound, which needs more developers.
What I would prefer is the original solution of defining these functions so
that they can be used both by opcode authors and Csound itself. If you are
agreeable with that, put the functions in their own file and change the
plugin loader to use them. If you don't want to change the plugin loader, or
you don't think this is a good idea, then feel free to remove the functions.
My main goal is that the plugin loader works well. After that, I want the
code in Csound to be consistent, i.e. I want Csound and plugins to use the
same code for loading libraries. In other words, if the functions stay in
the API, then the plugin loader should use them; if the plugin loader uses
native calls, the functions should be removed from the API or permanently
stubbed out and the opcodes also should use native calls.
Please let me know what you think. By the way, do you make a Mac OSX build
of wxCsound?
============================================
Michael Gogins
gogins at pipeline period com
Irreducible Productions
Silence, a language for programming music and sound
Available at http://sourceforge.net/projects/silencevst/
============================================
----- Original Message -----
From: "John D. Ramsdell"
To: "Csound Developers Discussion List"
Sent: Tuesday, November 04, 2003 2:01 PM
Subject: [CSOUND-DEV:3269] Re: ccsound.c
> "gogins@pipeline.com" writes:
>
> > If you define LOSE_LOAD_LIBRARY,
>
> It means use the stubs in load_opcodes.c. I placed the stubs there a
> while ago, but I'll move them if you want. I'll change the name of
> the defined symbol too. Just tell me what you prefer. Then again,
> Steven may be solving this problem as we correspond.
>
> John
>
> >From load_opcodes.c line 159.
>
> #elif defined LOSE_LOAD_LIBRARY
>
> void *csoundOpenLibrary(const char *libraryPath)
> {
> return 0;
> }
> void *csoundCloseLibrary(void *library)
> {
> return 0;
> }
> void *csoundGetLibrarySymbol(void *library, const char *procedureName)
> {
> return 0;
> }
> #endif
>
>
> > I take it that means dynamically loaded
> > plugin opcodes don't function? Or do they use other functions? If they
use
> > other functions, it would be less confusing to use another name for your
> > macro. If they don't function, they should; you could either move the
> > functions into csound.c or make another.c file with them.
> >
> > Original Message:
> > -----------------
> > From: ramsdell@mitre.org (John D. Ramsdell)
> > Date: 04 Nov 2003 12:22:07 -0500
> > To: csound-dev@eartha.mills.edu
> > Subject: [CSOUND-DEV:3266] Re: ccsound.c
> >
> >
> >
> > stevenyi writes:
> >
> > > Hi John R and all,
> > >
> > > Trying out ccsound.c, the linker is missing a few functions.
> > >
> > > oload.o(.data+0x1d0): undefined reference to `csoundOpenLibrary'
> > > oload.o(.data+0x1d4): undefined reference to `csoundCloseLibrary'
> > > oload.o(.data+0x1d8): undefined reference to `csoundGetLibrarySymbol'
> > >
> > > These are available in jpff_glue.c. What I had done previously to
> > > replace jpff_glue.c with csound.c was to copy these three functions
into
> > > csound.c. (They're empty stubs, so shouldn't be a big deal).
> > >
> > > These seem appropriate to place in csound.c and not ccsound.c.
> >
> > To avoid this problem, I build my library with -DLOSE_LOAD_LIBRARY.
> >
> > When I build without real time support and without -DLINUX, I also build
> > with -DLOSE_MIDI_TTY.
> >
> > Sorry, I should have not made people guess these procedures. I just
> > quickly knocked off the code and contributed it as I found it useful.
> > (It's stolen from the looping driver that shows the bug on Windows
> > with MinGW.)
> >
> > John
> >
> >
> > --------------------------------------------------------------------
> > mail2web - Check your email from the web at
> > http://mail2web.com/ .
> |