From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Cercueil Date: Sun, 12 Jul 2020 19:39:36 +0200 Subject: [Buildroot] [PATCH 1/2] sdl_mixer: add FluidSynth support In-Reply-To: <20200712155630.7b0cae9f@windsurf.home> References: <20200702152547.258093-1-paul@crapouillou.net> <20200712155630.7b0cae9f@windsurf.home> Message-ID: <0EADDQ.RW12BTKCKRWM3@crapouillou.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, Le dim. 12 juil. 2020 ? 15:56, Thomas Petazzoni a ?crit : > On Thu, 2 Jul 2020 17:25:46 +0200 > Paul Cercueil wrote: > >> Add support for MIDI playback using FluidSynth. >> >> Signed-off-by: Paul Cercueil >> --- >> package/sdl_mixer/sdl_mixer.mk | 11 +++++++++++ >> 1 file changed, 11 insertions(+) > > I've applied both patches, but I've changed a bit how the .mk file > handles the option. After both patches, it looks like this: > > ifeq ($(BR2_PACKAGE_FLUIDSYNTH),y) > SDL_MIXER_DEPENDENCIES += fluidsynth > SDL_MIXER_CONF_OPTS += \ > --enable-music-midi \ > --enable-music-fluidsynth-midi > SDL_MIXER_HAS_MIDI = YES > endif > > ifeq ($(BR2_PACKAGE_SDL_MIXER_MIDI_TIMIDITY),y) > SDL_MIXER_CONF_OPTS += \ > --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 It won't work then. --enable-music-midi automatically enables --enable-music-{native,fluidsynth,timidity}-midi, so these need to be manually disabled. Otherwise when you enable e.g. Fluidsynth, it will also enable Timidity even though the SDL_MIXER_MIDI_TIMIDITY option is OFF. Cheers, -Paul > Thanks! > > Thomas > -- > Thomas Petazzoni, CTO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com