Revert "add debug info to a-fluidsynth"
authorRobin Gareus <robin@gareus.org>
Wed, 5 Oct 2016 14:07:10 +0000 (16:07 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 5 Oct 2016 14:07:10 +0000 (16:07 +0200)
This reverts commit 6821f54817e03a55f100f422b6c0bba4328c8fb8.

libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c

index 4dcfa9347f344e449f52937f304898e82d3ab0ad..1af651be3f7b20387992ee372bac4f912782c7cd 100644 (file)
@@ -135,34 +135,13 @@ load_sf2 (AFluidSynth* self, const char* fn)
                return false;
        }
 
-       // Dump Program
-       // TODO consider  lv2_log_note()
-#ifndef NDEBUG
-       printf (" ---- a-fluid synth ----\n");
-       printf ("SoundFont %s\n", fn);
-#endif
        int chn;
        fluid_preset_t preset;
        sfont->iteration_start (sfont);
-       for (chn = 0; sfont->iteration_next (sfont, &preset); ++chn) {
-#ifndef NDEBUG
-                       printf ("Bank %3d Prog: %3d '%s'\n",
-                                       preset.get_banknum (&preset),
-                                       preset.get_num (&preset),
-                                       preset.get_name (&preset));
-#endif
-               if (chn < 16) {
-                       fluid_synth_program_select (self->synth, chn, synth_id,
-                                       preset.get_banknum (&preset), preset.get_num (&preset));
-               } else {
-#ifdef NDEBUG
-                       break;
-#endif
-               }
+       for (chn = 0; sfont->iteration_next (sfont, &preset) && chn < 15; ++chn) {
+               fluid_synth_program_select (self->synth, chn, synth_id,
+                               preset.get_banknum (&preset), preset.get_num (&preset));
        }
-#ifndef NDEBUG
-       printf (" ---- ------------- ----\n");
-#endif
 
        if (chn == 0) {
                return false;
@@ -276,9 +255,6 @@ instantiate (const LV2_Descriptor*     descriptor,
        fluid_settings_setnum (self->settings, "synth.sample-rate", rate);
        fluid_settings_setint (self->settings, "synth.parallel-render", 1);
        fluid_settings_setint (self->settings, "synth.threadsafe-api", 0);
-#ifndef NDEBUG // THIS IS NOT REALTIME SAFE (!)
-       fluid_settings_setint (self->settings, "synth.verbose", 1);
-#endif
 
        self->synth = new_fluid_synth (self->settings);