twin-e
twin-e copied to clipboard
Error while playing music: 31
TiMidity++ installed, no music
@xesf, did the MIDI worked at all? I can play random .mid files on my system. Maybe something with SDL part. Will try to dig into this, I don't have much knowledge..
Yeah on windows at least it was working fine. Can't remember on Mac OS X. I no longer have my project setup, tried to do it on mac but having some sdl linking issues.
With the xmidi.c file we should have access to the original midi implementation. It's not fully ported, but as far as I remember was enable for our needs.
I see in recent versions true MIDI support from Windows port was added. I wonder how I would to debug it further.. I'll try to compile sample player from SDL distribution and try it.
By the way: CDA tracks from cdemu emulated GOG's CD are playing fine. Think it worth mention in README :)
Ok I've sorted it out. The problem was my distro's SDL_mixer build does not contain this patch: libsdl-mixer1.2: fails with valid timidity.cfg config options. So, the lib gets confused by new TiMidity++ options and refuses to init. Unfortunately, the program doesn't handle this situation properly and doesn't output any init errors from the lib, so it was hard to debug.. By the way: how hard would be to port it to SDL2? Seems sound from SDL_mixer and SDL2_mixer somewhat differs..