cpal icon indicating copy to clipboard operation
cpal copied to clipboard

cpal doesn't respect default device chosen through KDE UI

Open tesselode opened this issue 11 months ago • 5 comments

In KDE, there's this widget which lets me select the default audio device for applications:

Image

This doesn't seem to impact what cpal chooses as the default, though. I have no idea what mechanism KDE uses to set the default device, but can/should cpal read that default?

I'm using Arch with PulseAudio.

tesselode avatar Feb 10 '25 02:02 tesselode

I think it's reasonable to expect this to work. Fixing it will probably require either understanding how (if at all) this default is surfaced to the ALSA API, or for someone to finally review and merge a native pulse backend, which may be a difficult sell now that everything's moving to pipewire anyway.

Ralith avatar Feb 10 '25 03:02 Ralith

Aren't these settings the default output device for Pulse? From the perspective of cpal, Pulse / Pipewire is just one ALSA device, then the mixing daemon will probably output the stream to wherever you told it to.

dani-corie avatar Feb 23 '25 22:02 dani-corie

@dani-corie No, these are default devices for PipeWire. They modify the session manager's defaults.

cynthia2006 avatar May 01 '25 02:05 cynthia2006