summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-08-24 17:51:15 +0200
committerRobin Gareus <robin@gareus.org>2016-08-24 17:51:15 +0200
commit427d9f888ade60c20d57e6f3ccd8a62eab6fc426 (patch)
tree9b6cf110a7f09888e7e371c298e6fd591973df7c
parent7bdf4e12ba13a7d49a4b83c7f0afa5109556d20b (diff)
reduce initial fluidsynth load
-rw-r--r--libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c
index 34275e15b4..249cc7799c 100644
--- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c
+++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c
@@ -509,6 +509,10 @@ work (LV2_Handle instance,
fluid_synth_all_notes_off (self->synth, -1);
fluid_synth_all_sounds_off (self->synth, -1);
self->panic = false;
+ // boostrap synth engine.
+ float l[1024];
+ float r[1024];
+ fluid_synth_write_float (self->synth, 1024, l, 0, 1, r, 0, 1);
}
respond (handle, 1, "");