]> git.sesse.net Git - vlc/commitdiff
Compile time support for FluidSynth 1.0
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Apr 2010 08:21:23 +0000 (11:21 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Apr 2010 08:21:23 +0000 (11:21 +0300)
Packagers shall be responsible for fixing FluidSynth thread-safety
issues if they choose to use this old buggy version.

configure.ac
modules/codec/fluidsynth.c

index bf40c22c07e29536ee589c3995c1eb66b7252cb5..aea59d660944f51fb7930e7d5b350a5a5040e15a 100644 (file)
@@ -3162,7 +3162,7 @@ fi
 dnl
 dnl libfluidsynth (MIDI synthetizer) plugin
 dnl
-PKG_ENABLE_MODULES_VLC([FLUIDSYNTH], [], [fluidsynth >= 1.1], [MIDI synthetiser with libfluidsynth], [auto])
+PKG_ENABLE_MODULES_VLC([FLUIDSYNTH], [], [fluidsynth], [MIDI synthetiser with libfluidsynth], [auto])
 
 dnl
 dnl Teletext Modules
index 4fb33fc5cce1c418c9b9af7932d9bf18835d31d6..0f25c89818dba34aa3c5dec5d305380d1d688b56 100644 (file)
 
 #include <fluidsynth.h>
 
+#if (FLUIDSYNTH_VERSION_MAJOR < 1) \
+ || (FLUIDSYNTH_VERSION_MAJOR == 1 && FLUIDSYNTH_VERSION_MINOR < 1)
+# define fluid_synth_sysex(synth, ptr, len, d, e, f, g) (FLUID_FAILED)
+# define fluid_synth_system_reset(synth) (FLUID_FAILED)
+# define fluid_synth_channel_pressure(synth, channel, p) (FLUID_FAILED)
+#endif
+
 #define SOUNDFONT_TEXT N_("Sound fonts (required)")
 #define SOUNDFONT_LONGTEXT N_( \
     "A sound fonts file is required for software synthesis." )