Skip to content

Improve user experience for audio on Linux #2705

Open
@alice-i-cecile

Description

@alice-i-cecile

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:

for some examples of this, and workarounds found within.

There are a couple of things I think we could do to make this better:

  1. 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.
  2. Fail gracefully in bevy_audio when no audio device is found.
  3. 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

No one assigned

    Labels

    A-AudioSounds playback and modificationC-UsabilityA targeted quality-of-life change that makes Bevy easier to useO-LinuxSpecific to the Linux desktop operating systemS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    Status

    Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions