Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while playing music: 31 #21

Open
bam80 opened this issue Sep 29, 2018 · 4 comments
Open

Error while playing music: 31 #21

bam80 opened this issue Sep 29, 2018 · 4 comments

Comments

@bam80
Copy link

bam80 commented Sep 29, 2018

TiMidity++ installed, no music

@bam80
Copy link
Author

bam80 commented Sep 30, 2018

@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..

@xesf
Copy link
Member

xesf commented Sep 30, 2018

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.

@bam80
Copy link
Author

bam80 commented Sep 30, 2018

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 :)

@bam80
Copy link
Author

bam80 commented Oct 1, 2018

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants