summaryrefslogtreecommitdiff
path: root/libs/plugins/a-fluidsynth.lv2
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2019-05-12 21:27:37 +0200
committerJohannes Mueller <github@johannes-mueller.org>2019-05-12 21:27:37 +0200
commit12808c7bd2153984b2d3a181746a3ec4eb573822 (patch)
tree274f83767f8085e447b3b1006eeef9e491454c5f /libs/plugins/a-fluidsynth.lv2
parent7e56812c5590aa0d400835b746713dbf4c4cc1e7 (diff)
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.
Diffstat (limited to 'libs/plugins/a-fluidsynth.lv2')
-rw-r--r--libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc
index 3c585f2cbf..06c633dee5 100644
--- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc
+++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc
@@ -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) {