]> git.sesse.net Git - vlc/blobdiff - modules/codec/fluidsynth.c
Compile time support for FluidSynth 1.0
[vlc] / modules / codec / fluidsynth.c
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." )