fluid~ bug (was: [PD] flext, fluid~, readanysf~, and FLEXT_USE_CMEM (or don't))

Frank Barknecht fbar at footils.org
Tue Feb 6 17:36:03 CET 2007

Bryan Jurish hat gesagt: // Bryan Jurish wrote:

> This is just a plain old initialization bug in fluid/main.cpp.  It seems
> that fluid::fluid() calls fluid::fluid_init(), which calls
> libfluidsynth's delee_fluid_synth() if (this->synth != NULL), which is
> complete and utter hogwash at initialization time unless this->synth has
> been initialized to NULL, which (apparently) happens just in case we're
> using flext's new() and delete() (!defined(FLEXT_USE_CMEM)) rather than
> pd's getbytes() (defined(FLEXT_USE_CMEM)), sooooo:
> Frank, would you have anything against my chaning line 51 of
> fluid/main.cpp in CVS from:
>   fluid(int argc, t_atom *argv)
> to:
>   fluid(int argc, t_atom *argv) : synth(NULL)
> ?

Yes, you're right of course. How could this fly under the rader for so
long...  Your fix is commited, thanks a lot.

 Frank Barknecht                 _ ______footils.org_ __goto10.org__

More information about the Pd-list mailing list