Hi Carlo,

2017-10-29 11:58 GMT+01:00 Carlo Bramini <carlo.bra...@libero.it>:

> It saves some memory if someone wants (about 12KB on an ARM Thumb2
> microcontroller) and it would be selectable by the user (logging will be
> activated by default).
>

Unrelated to your change request and you probably have seen it already... I
stumbled across this while trying to figure out the rvoice mixer rendering
data flow: FluidSynth allocates 8192 * sizeof(fluid_real_t) of memory for
each output buffer, so for a normal stereo setup with reverb and chorus and
double-precision floats that's 256k of memory. The size is hard-coded in
fluid_rvoice_mixer.h:
#define FLUID_MIXER_MAX_BUFFERS_DEFAULT (8192/FLUID_BUFSIZE)

So if you know how many blocks you render at any one time, you can probably
change the 8192 to something *much* smaller (maybe even to FLUID_BUFSIZE),
reducing the memory footprint of FluidSynth quite a bit.

Cheers,

   Marcus
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to