Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 804270 - media-libs/sdl2-mixer should not force a softsynth for MIDI
Summary: media-libs/sdl2-mixer should not force a softsynth for MIDI
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-25 21:07 UTC by Ville Aakko
Modified: 2021-08-01 11:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Aakko 2021-07-25 21:07:38 UTC
media-libs/sdl2-mixer forces to set +fluidsynth or +timidity if +midi USE flag has been set.

However, sdl2-mixer builds fine with just 

--enable-music-midi 
--enable-music-midi-native

I suggest removing this line:
`
midi? ( || ( timidity fluidsynth ) )
`

and let the user decide whether they want a softsynth to begin with. Some users still have some H/W Midi devices =).

Bug 421337 is kind of related, although it is a different issue. However making this change would also fix 421337 as a side effect, if I've understood the issue correctly.

One possible issue with my suggestion is that an user might not be familiar with MIDI and be confused about not hearing any MIDI music with a player using SDL.

Reproducible: Always

Steps to Reproduce:
Try to emerge media-libs/sdl2-mixer with +midi -timidity -fluidsynth
Actual Results:  
failure

Expected Results:  
success
Comment 1 James Le Cuirot gentoo-dev 2021-07-26 22:05:18 UTC
Lucky for you the games lead has some history with real MIDI hardware. ;) I think the best option would be to make the choice explicit by adding a native-midi flag. What do you think?
Comment 2 Ville Aakko 2021-08-01 11:49:17 UTC
Hi,

using the native-midi would indeed take care of the confusion part at least =).

In any case, I'm a bit indifferent on how to solve, I'd like someone more knowledgeable to decide =). But if I think about it, indeed the ability to enable/disable softsynths should be retained, so your suggestion would be better indeed.

Personally, I've already "solved" this by a local overlay (I have a bit of a thin setup and a slow computer and didn't want any softsynth there).