From e56a90f3b343217671327aba2ecdca8709463331 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 12 Feb 2009 08:43:26 +0100 Subject: fluidsynth: new decoder plugin for MIDI files There are a few problems left in this plugin: - fluidsynth decodes in real time, while MPD prefers to buffer as quickly as possible; as a workaround, this plugin uses a timer object to synchronize with real-time playback - I don't know yet how fluidsynth tells me when the song has ended - the "soundfont" configuration setting is not yet documented, and it will likely change soon (in favor of a per-decoder configuration block) --- src/decoder_list.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/decoder_list.c') diff --git a/src/decoder_list.c b/src/decoder_list.c index 96429067c..e7f757e71 100644 --- a/src/decoder_list.c +++ b/src/decoder_list.c @@ -35,6 +35,7 @@ extern const struct decoder_plugin wavpack_plugin; extern const struct decoder_plugin modplug_plugin; extern const struct decoder_plugin mikmod_decoder_plugin; extern const struct decoder_plugin sidplay_decoder_plugin; +extern const struct decoder_plugin fluidsynth_decoder_plugin; extern const struct decoder_plugin ffmpeg_plugin; static const struct decoder_plugin *const decoder_plugins[] = { @@ -74,6 +75,9 @@ static const struct decoder_plugin *const decoder_plugins[] = { #ifdef ENABLE_SIDPLAY &sidplay_decoder_plugin, #endif +#ifdef ENABLE_FLUIDSYNTH + &fluidsynth_decoder_plugin, +#endif #ifdef HAVE_FFMPEG &ffmpeg_plugin, #endif -- cgit v1.2.3