Skip to content
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

Support pipewire #68

Open
somini opened this issue Nov 14, 2021 · 5 comments
Open

Support pipewire #68

somini opened this issue Nov 14, 2021 · 5 comments

Comments

@somini
Copy link
Contributor

somini commented Nov 14, 2021

Pipewire is the new Pulseaudio replacement, it's almost backwards-compatible, but pacmd doesn't exist.

The script only uses pacmd for list-sinks/list-sources, which according to https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#pacmd, can be replaced with some manipulation on top of pw-cli ls Node.

@graysky2
Copy link
Owner

Haven't tried pipewire yet... is PA planned to be deprecated or is pipewire just an alternative?

@somini
Copy link
Contributor Author

somini commented Nov 16, 2021

From what I can tell, Pipewire is a superset of Pulseaudio, which supports video too. With pipeware-pulse, there's compatibility with Pulseaudio's interface, and with pipewire-jack, the exposed API is JACK (for pro audio).

There's also video stuff, that does the same thing as Pulseaudio does to ALSA: allowing two programs to use the same camera at once, apply effects, screen sharing, etc.

I don't know for certain, but I would wager Pulseaudio will be deprecated in the future since Pipewire can expose a compatible API. Just not pacmd.

@graysky2
Copy link
Owner

I don't have any immediate plans to play with it but we can leave this open as things evolve.

@somini
Copy link
Contributor Author

somini commented Nov 17, 2021

It's really "just" a matter of replacing the 10 pacmd invocations, it might conflict with #53. It's not trivial, so I don't have a PR at the moment.

In case anyone migrates and is unable to control audio (like me), there's pamixer for emergencies, it uses the API.

@somini
Copy link
Contributor Author

somini commented Dec 17, 2022

FYI, looks like WirePlumber "solved" this issue by shipping a program that does basically the same thing:

https://wiki.archlinux.org/title/WirePlumber#Keyboard_volume_control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants