From 23d15db8facc4b38855af1ab5be8130958d4321f Mon Sep 17 00:00:00 2001 From: derselbst Date: Wed, 4 Oct 2017 14:30:46 +0200 Subject: [PATCH] remove fluid_synth_set_midi_router() only needed by shell command handler previously --- src/synth/fluid_synth.c | 17 ----------------- src/synth/fluid_synth.h | 1 - 2 files changed, 18 deletions(-) diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index ee64b140..275caace 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -4953,23 +4953,6 @@ fluid_synth_get_gen(fluid_synth_t* synth, int chan, int param) FLUID_API_RETURN(result); } -/** - * Assign a MIDI router to a synth. - * @param synth FluidSynth instance - * @param router MIDI router to assign to the synth - * - * @note This should only be done once and prior to using the synth. - */ -void -fluid_synth_set_midi_router(fluid_synth_t* synth, fluid_midi_router_t* router) -{ - fluid_return_if_fail (synth != NULL); - fluid_synth_api_enter(synth); - - synth->midi_router = router; - fluid_synth_api_exit(synth); -}; - /** * Handle MIDI event from MIDI router, used as a callback function. * @param data FluidSynth instance diff --git a/src/synth/fluid_synth.h b/src/synth/fluid_synth.h index 2a47a32b..7280d78e 100644 --- a/src/synth/fluid_synth.h +++ b/src/synth/fluid_synth.h @@ -162,7 +162,6 @@ struct _fluid_synth_t fluid_tuning_t*** tuning; /**< 128 banks of 128 programs for the tunings */ fluid_private_t tuning_iter; /**< Tuning iterators per each thread */ - fluid_midi_router_t* midi_router; /**< The midi router. Could be done nicer. */ fluid_sample_timer_t* sample_timers; /**< List of timers triggered before a block is processed */ unsigned int min_note_length_ticks; /**< If note-offs are triggered just after a note-on, they will be delayed */