-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
fix: Check for PipeWire as well as PulseAudio before falling back to ALSA #1565
base: master
Are you sure you want to change the base?
fix: Check for PipeWire as well as PulseAudio before falling back to ALSA #1565
Conversation
02cc2da
to
b84bd34
Compare
This will not work for pure Alsa system. Pipewire is always installed as dependencies for another app even if not used. |
Maybe instead check if the pipewire service is running like
|
A good point, though I suppose that would have similar downsides when running Quickemu on non-systemd distros like Alpine or Void.
I guess this check might need to get more complex and layered.
…On Sun, Jan 19, 2025 at 14:37, Szorfein ***@***.***(mailto:On Sun, Jan 19, 2025 at 14:37, Szorfein <<a href=)> wrote:
Maybe instead check if the pipewire service is running like
systemctl is-active pipewire
—
Reply to this email directly, [view it on GitHub](#1565 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ADEK7VQSRMBNHLKTGKAUJTL2LO2AZAVCNFSM6AAAAABVOTTHGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBQHA4DOOBUG4).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
if work for me if testing with
|
b84bd34
to
8c9ddf0
Compare
Thanks! Have updated the PR to look for I think that's definitely more robust and I can confirm it works to solve the original bug still on Fedora 41. Should also cope with situations where the system is pure ALSA still, like you mentioned before. |
Could we not just check whether one of these servers is actively running?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QEMU 8.1 added a pipewire audio backend. We should use it if possible. This should be a better solution in general.
if ! command -v pacmd >/dev/null 2>&1 && ! command -v pipewire-pulse >/dev/null 2>&1; then | ||
AUDIO_DRIVER="alsa" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ! command -v pacmd >/dev/null 2>&1 && ! command -v pipewire-pulse >/dev/null 2>&1; then | |
AUDIO_DRIVER="alsa" | |
fi | |
if pidof pipewire >/dev/null 2>&1; then | |
# QEMU's pipewire audio backend was added in version 8.1 | |
if [ "${QEMU_VER_SHORT}" -ge 81 ]; then | |
AUDIO_DRIVER="pipewire" | |
fi | |
elif ! pidof pulseaudio >/dev/null 2>&1; then | |
AUDIO_DRIVER="alsa" | |
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea to test pipewire and pulseaudio with pidof
and this include pipewire to the project :)
Description
Type of change
Checklist: