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
[Bug]: Sound non-functional in nightly linux-generic builds #11048
Comments
Silly question, but how about music? Or are both non-functional? |
Music doesn't work either. Fluidity outputs sound samples back to OpenTTD, rather than talking to the sound devices directly. (Someone wrote a helpful comment about this in the workflow, I wouldn't have guessed this otherwise :P). |
My theory as to what happened is that by removing
We are deliberately not providing the headers for any of the audio drivers. However, since we're now compiling SDL2 from source, it also relies on the headers for those audio drivers for proper audio support, essentially our SDL2 is built without any audio support at all on Linux (the error message references I'm currently in the process of wrangling the github workflows to test this theory in my own branch, by simply installing |
I can confirm this bug is true on both vanilla 13.2 and JGRPP 0.54.2 on Steam Deck (which has gotten to be a pretty popular device), so whatever makes this unappetizing, you might just have to swallow it anyway. |
My build finished, and it became immediately clear why we avoid pulling in those dependencies from yum: As you can see the amount of stuff pulled into What's doubly weird though is with my artifact I can delete the entire contents of |
Bit of a backstory how SDL works: If during compiling of SDL the header-files of audio drivers are available, it will add support for that audio driver. But, on runtime, it will use What went wrong in the earlier mentioned commit, is that the header files were no longer there, so SDL doesn't add support for that driver. An otherwise easy fix. I will add support for jack, alsa and pulse soon. |
I'm having issues with JGR and multimonitor detection, Perhaps there's some other headers missing that might be worth investigating? |
Issues with JGRPP should be reported to his repo. Possible this change hasn't been ported yet |
@LordAro I bring it up here, because it seems like a build issue, just like this SDL sound issue, infact building the JGR version on my distro fixes both the multimonitor issue and the sound issue, I assume it's because some xorg deps are missing. |
Version of OpenTTD
master
Expected result
Sound (sound effects, music) works.
Actual result
Running the current nightly builds with
-d driver=1
produces:Resulting in no audio output.
13.x linux-generic builds work fine.
Forwarded from: JGRennison/OpenTTD-patches#552
This appears to coincide with #10484.
Steps to reproduce
See above
The text was updated successfully, but these errors were encountered: