]> git.sesse.net Git - vlc/blobdiff - modules/codec/fluidsynth.c
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / codec / fluidsynth.c
index 5c1288b3fbf5b0a6ac23b845ad47adc188f2c814..4cf309870a12d496fdf000dd7df4d00e6d9a8038 100644 (file)
 
 #include <fluidsynth.h>
 
+#if (FLUIDSYNTH_VERSION_MAJOR < 1) \
+ || (FLUIDSYNTH_VERSION_MAJOR == 1 && FLUIDSYNTH_VERSION_MINOR < 1)
+# define FLUID_FAILED (-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." )
@@ -219,7 +227,7 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
         case 0xC0:
             fluid_synth_program_change (p_sys->synth, channel, p1);
             break;
-        case 0xA0:
+        case 0xD0:
             fluid_synth_channel_pressure (p_sys->synth, channel, p1);
             break;
         case 0xE0: