Fluidsynth 2.4.4

I’m on Debian Linux with Ardour 1:8.12 , pipewire 1.4.1 and fluidsynth 2.4.4

With fluidsynth 2.4.4, i see the following error while ardour starts up and the sound cracks very bad

fluidsynth: error: fluid_synth_set_sample_rate() is no longer supported in this version of fluidsynth!
fluidsynth: error: fluid_synth_set_sample_rate() is no longer supported in this version of fluidsynth!
fluidsynth: error: fluid_synth_set_sample_rate() is no longer supported in this version of fluidsynth!
fluidsynth: error: fluid_synth_set_sample_rate() is no longer supported in this version of fluidsynth!

is there a way to fix the sound?
Thanks in advance

Use the ACE version of fluidsynth that comes with Ardour (at least, Ardour from ardour.org)

1 Like

thanks @paul for the reply.

The Ardour Manual - Instruments states that “ACE Fluid Synth” is also based on fluidsynth. Won’t it have the same problem then?

looks like this function call, fluid_synth_set_sample_rate() is depreated in fluidsynth 2.4.4 (fluidsynth 2.4.4 with Ardour 1:8.12 , pipewire 1.4.1 · FluidSynth/fluidsynth · Discussion #1537 · GitHub)

It’s based on fluidsynth.
So if Ardour uses fluid_synth_set_sample_rate() it’s probably not deprecated in the ACE Fluid Synth version.
At least not the one in the official Ardour binary.

I see that Ardour also calls fluid_settings_setnum() to set the sample rate before initializing the synth, which is the recommended method. Ardour doesn’t change sample rate on the fly, so it isn’t clear why Ardour would need to call fluid_synth_set_sample_rate() if the sample rate was already initialized.

$ find ./ -name "*.cc" | xargs grep fluid_settings_setnum
./libs/ardour/fluid_synth.cc:   fluid_settings_setnum (_settings, "synth.sample-rate", samplerate);
./libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc:        fluid_settings_setnum (self->settings, "synth.sample-rate", rate);

]$ find ./ -name "*.cc" | xargs grep fluid_synth_set_sample_rate
./libs/ardour/fluid_synth.cc:   fluid_synth_set_sample_rate (_synth, (float)samplerate);
./libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc:        fluid_synth_set_sample_rate (self->synth, (float)rate);

i tried the same setup on a different computer and it works fine. There is no cracking in the sound, though it displays the same error

fluidsynth: error: fluid_synth_set_sample_rate() is no longer supported in this version of fluidsynth!

Hence, I think the sound cracking probably has nothing to do with the above error. It is probably some pipewire stuff.

image

the sound was back to normal when i increased this buffer size.
It was initially 1024 and the sound was cracking.
I increased it and it sounded fine/normal
Then i changed back to 1024 and still the sound was normal. I wonder what would be an appropriate value for this.