Add MIDI playback support using SDL_mixer' built-in Timidity synth.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
SMPEG MP3 libraries.
http://www.libsdl.org/projects/SDL_mixer/
+
+if BR2_PACKAGE_SDL_MIXER
+
+config BR2_PACKAGE_SDL_MIXER_MIDI_TIMIDITY
+ bool "MIDI support with built-in Timidity synth"
+ help
+ Support MIDI audio using the built-in synth based on Timidity.
+ You will need MIDI instruments installed in the filesystem.
+
+endif
SDL_MIXER_CONF_OPTS += \
--enable-music-midi \
--enable-music-fluidsynth-midi
-else
+SDL_MIXER_HAS_MIDI = YES
+endif
+
+ifeq ($(BR2_PACKAGE_SDL_MIXER_MIDI_TIMIDITY),y)
SDL_MIXER_CONF_OPTS += \
- --disable-music-midi
+ --enable-music-midi \
+ --enable-music-timidity-midi
+SDL_MIXER_HAS_MIDI = YES
+endif
+
+ifneq ($(SDL_MIXER_HAS_MIDI),YES)
+SDL_MIXER_CONF_OPTS += --disable-music-midi
endif
ifeq ($(BR2_PACKAGE_LIBMAD),y)