13
0

Fix for #7755: initialize reverb and chorus of fluidsynth object

The reverb and chorus states in the fluidsynth object need to be initialized to
0 (false) in accordance with the initial state of a-fluidsynth's
v_port[...]. Otherwise they are not updated in the first run() and remain to
fluidsynth's default state 1 (true) even though the plugin's state requires 0.
This commit is contained in:
Johannes Mueller 2019-05-12 21:27:37 +02:00
parent 7e56812c55
commit 12808c7bd2

View File

@ -336,6 +336,9 @@ instantiate (const LV2_Descriptor* descriptor,
fluid_synth_set_polyphony (self->synth, 32);
fluid_synth_set_sample_rate (self->synth, (float)rate);
fluid_synth_set_reverb_on (self->synth, 0);
fluid_synth_set_chorus_on (self->synth, 0);
self->fmidi_event = new_fluid_midi_event ();
if (!self->fmidi_event) {