fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Enable/disable logging at configure time


From: Marcus Weseloh
Subject: Re: [fluid-dev] Enable/disable logging at configure time
Date: Sun, 29 Oct 2017 14:04:38 +0100

Hi Carlo,


2017-10-29 11:58 GMT+01:00 Carlo Bramini <address@hidden>:
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]