k4zmu2a/SpaceCadetPinball

Audio not working.

3laws opened this issue · 1 comments

3laws commented

Built successfully on Fedora 37.

I did read #59, did not see the same error I'm having.

I initially tried export SDL_SOUNDFONT=/path/to/your/soundfont as indicated in BUILD.md with a custom soundfont but got:

Log
Loading game from: /home/3laws/.local/share/SpaceCadetPinball/PINBALL.DAT
SDL Error: Couldn't open /etc/timidity++.cfg

Using fluidsynth now I get:

Log
Using SDL renderer: opengl
Loading game from: /home/3laws/.local/share/SpaceCadetPinball/PINBALL.DAT
SDL Error: Couldn't open /usr/share/soundfonts/fluid-soundfont-lite-patches/FluidR3_GM-Standard/Splash

I this reply, I am assuming that audio not working == midi music is not working, wav sounds are working.

SDL mixer API does not offer midi backend configuration.
I believe that I am using said SDL API correctly.
That leaves SDL->system midi interaction as the most likely cause of your issues.

Unfortunately, I am not familiar with midi on Linux, so I can’t help you much here.
For me, music worked on all distros that I tried, out of the box without any exports or custom soundfonts.
This message “SDL Error: Couldn't open timidity.cfg” was always there in my tests, even on Windows.
I assumed it to be a quirk of SDL mixer.