The Dink Network

Reply to Re: Bugfixes for freedink on Linux

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 2nd 2022, 02:57 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
I also find that setting SDL_FORCE_SOUNDFONTS and SDL_SOUNDFONTS to something results in a segfault when any MIDI is attempted to be played back! In the log, it complains that one must Mix_SetMusicCMD() first to specify an external playback command. Unfortunately, SDL_Mixer is so poorly documented that one must trawl through the source to figure out what's going on. I wouldn't have expected it to need an external command at all, and that it would instead use Fluidsynth internally...

It appears that SDL_Mixer will automatically opt for FluidR3 when attempting to use SoundFonts and it can't find the user-specified path which may explain why it worked anyway in your case, but at this point, I don't really know what's going on and can only assume that SoundFont playback is broken. I attempted to use an acapella soundfont for testing, as it's very evident when it's in use but couldn't get anything out of it other than a crash. I now understand why Seth uses FMOD

Ideally we'd link against SDL Mixer X instead, as it features several very configurable MIDI playback engines, and is much better documented overall. I tested SDL_Mixer's playmus.c test program "./playmus "38.mid|s4" with those two envs and it sounded as expected, and allowed me to change soundfont at will.

For Windows builds, back in the good old days, Beuc would use mingw32 to compile them, and there is some outdated documentation pertaining to this in docs/cross.txt. I do have MSYS2 working on my Win7 PC though so I'll attempt to compile a Windows exe on there at some point.