Skip to content

Enable cpal's pulseaudio feature by default #883

@chrisduerr

Description

@chrisduerr

Going to start this with a bit of a tangent, please bear with me:

The other day I updated my phone's Kernel and ran into some audio issues, where rodio's audio was playing extremely silently, ignoring output volume level, and not showing up in my audio playback sources. I figure this is probably something wrong with my setup, but a simple aplay seems to work out just fine. Long story short: I ran cpal's beep example and realized I get an error by default, but it works just fine if I enable the pipewire or pulseaudio features.

Now it doesn't really matter why the alsa path isn't working, but on Linux generally pulseaudio is the standard audio playback path. It's most likely to provide a consistent and pleasant audio playback solution. What I do right now is depend on the latest rodio and cpal git, then just specify the pulse feature to make sure it's enabled automatically for rodio too. But this took some tinkering to figure out and get working.

Pulseaudio (and to a lesser degree pipewire) is the standard audio playback system for Linux, so would it make sense to add a feature for one (or both) of these and enable it by default?

This is mostly a suggestion, you might have some opinions on this already, I figured since this required upstream work in cpal it might have just fallen off the radar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions