Open pshirshov opened 2 months ago
Looks like an issue with sdl2_mixer
Homebrew package. Native MIDI backend seems to be disabled (I have no idea what the reason is), FluidSynth MIDI backend is enabled, but it requires sound fonts that have not been installed by fheroes2
package. Try to manually copy files/soundfonts/fheroes2.sf3
from the source package to ~/.fheroes2/files/soundfonts
.
It works, thank you. Though, I think it's still a good idea to fix it in the brew formula or in the code itself.
Though, I think it's still a good idea to fix it in the brew formula or in the code itself.
There is nothing to fix in our code in this case. As for the brew formula, I do not know who is its regular maintainer. Personally, I don't use Homebrew, but MacPorts. In MacPorts, on the contrary, FluidSynth backend is disabled and native macOS MIDI is enabled, i.e. no soundfonts are required.
Well, it still might be a good idea to show a user-friendly error message.
Well, it still might be a good idea to show a user-friendly error message.
This error comes from SDL as a string. It doesn't make much sense to show this error in the game UI as is, because an average user, most likely, still won't understand what this means and what needs to be done, it's just going to be some kind of another incomprehensible "blablabla" error message for him. Also there is no point in trying to parse this error string somehow, because its wording is not a part of the API contract - this string can be changed, translated/localized, and so on at any time. Moreover, even though errors of this kind are returned by SDL, they can be originated from some 3-rd party library. Errors of this kind are logged and user can contact our team or package maintainer for help if something really doesn't work for him (e.g. he can't hear the MIDI music, like in your case).
This issue is outside our project and must be fixed in Homebrew package itself, which is not maintained by the core team.
Preliminary checks
Platform
macOS
Describe the bug
MIDI does not play on Apple Silicon machines w/macOS Sonoma 14.4.1, the error message in the console is
I use the homebrew version:
Same thing happens whatever option I choose - External/MIDI/MIDI Expansion.
Save file
N/A
Additional info
No response