Description
Audio failures on Linux are some of the most common reasons for end users to struggle with compiling and running Bevy. This makes for a terrible new user experience, takes a lot of help resources, and will be a barrier to actually releasing Bevy games on Linux.
This issue should be closed when following the instructions listed in the Bevy book generally results in working audio on Linux, or a clear error explaining why that's not possible and how to disable the relevant features.
See:
- ALSA lib Invalid value for card #1855
- ALSA Error Causes hard crash #2699
- Note on dependency arch for Fedora #1815
- bevy fails to compile/run on musl based linux distros #898
- Bevy crashes when not found any audio device #850
for some examples of this, and workarounds found within.
There are a couple of things I think we could do to make this better:
- Improve docs for Linux users in the Bevy book, specifically calling this out as a potential issue and adding the workarounds and debugging steps found.
- Fail gracefully in
bevy_audio
when no audio device is found. - Investigate the causes more fully, and attempt to make upstream fixes to https://alsa-project.org/wiki/Main_Page or encourage distro owners to fix distribution issues.
As far as I'm aware, there's no reasonable alternative to ALSA we could investigate :(
This is not at all my personal area of expertise though, so if you have more experience with this, please chime in with suggestions!
Metadata
Metadata
Assignees
Labels
Type
Projects
Status