aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_list.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-12 08:43:26 +0100
committerMax Kellermann <max@duempel.org>2009-02-12 08:43:26 +0100
commite56a90f3b343217671327aba2ecdca8709463331 (patch)
tree0ab34e9937cd5080db0a4dd0a571ec1874f41fb0 /src/decoder_list.c
parentde2e13cafe7157fa08893824c4fdbdae343c6d2e (diff)
downloadmpd-e56a90f3b343217671327aba2ecdca8709463331.tar.gz
mpd-e56a90f3b343217671327aba2ecdca8709463331.tar.xz
mpd-e56a90f3b343217671327aba2ecdca8709463331.zip
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)
Diffstat (limited to 'src/decoder_list.c')
-rw-r--r--src/decoder_list.c4
1 files changed, 4 insertions, 0 deletions
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