From 427d9f888ade60c20d57e6f3ccd8a62eab6fc426 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 24 Aug 2016 17:51:15 +0200 Subject: reduce initial fluidsynth load --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c | 4 ++++ 1 file changed, 4 insertions(+) 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, ""); -- cgit v1.2.3