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) --- configure.ac | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8fd2977fd..84ffce570 100644 --- a/configure.ac +++ b/configure.ac @@ -417,6 +417,11 @@ AC_ARG_ENABLE(sidplay, [enable C64 SID support via libsidplay2 (default: disable)]),, enable_sidplay=no) +AC_ARG_ENABLE(fluidsynth, + AS_HELP_STRING([--enable-fluidsynth], + [enable MIDI support via fluidsynth (default: disable)]),, + enable_fluidsynth=no) + AC_ARG_ENABLE(wavpack, AS_HELP_STRING([--disable-wavpack], [disable WavPack support (default: enable)]), @@ -1018,13 +1023,21 @@ if test x$enable_sidplay = xyes; then AC_SUBST(SIDPLAY_LIBS,"-lsidplay2 -lresid-builder") AC_SUBST(SIDPLAY_CFLAGS,) - AC_DEFINE(ENABLE_SIDPLAY, 1, [Define for libsidplay2 support]), + AC_DEFINE(ENABLE_SIDPLAY, 1, [Define for libsidplay2 support]) else AM_CONDITIONAL(am__fastdepCXX, false) fi AM_CONDITIONAL(ENABLE_SIDPLAY, test x$enable_sidplay = xyes) +if test x$enable_fluidsynth = xyes; then + PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth], + AC_DEFINE(ENABLE_FLUIDSYNTH, 1, [Define for fluidsynth support]), + enable_fluidsynth=no) +fi + +AM_CONDITIONAL(ENABLE_FLUIDSYNTH, test x$enable_fluidsynth = xyes) + dnl dnl Documentation @@ -1310,6 +1323,12 @@ else echo " C64 SID support ...............disabled" fi +if test x$enable_fluidsynth = xyes; then + echo " fluidsynth MIDI support .......enabled" +else + echo " fluidsynth MIDI support .......disabled" +fi + if test x$enable_ffmpeg = xyes; then echo " FFMPEG support ................enabled" else @@ -1328,6 +1347,7 @@ if test x$enable_ffmpeg = xno && test x$enable_modplug = xno && test x$enable_sidplay = xno && + test x$enable_fluidsynth = xno && test x$enable_mod = xno; then AC_MSG_ERROR([No input plugins supported!]) fi -- cgit v1.2.3