Skip to content

Commit

Permalink
fix: Check for PipeWire as well as PulseAudio before falling back to …
Browse files Browse the repository at this point in the history
…ALSA (quickemu-project#1565)

* fix: Check for PipeWire as well as PulseAudio before falling back to ALSA

* fix: Use PipeWire backend if available, and where QEMU version is >8.1

Co-authored-by: Liam <[email protected]>

---------

Co-authored-by: Liam <[email protected]>
  • Loading branch information
alexhaydock and lj3954 authored Jan 20, 2025
1 parent 20b17cb commit 0c772d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,12 @@ function configure_storage() {
function configure_display() {
# Determine which audio driver use between Pulseaudio or ALSA
local AUDIO_DRIVER="pa"
if ! command -v pacmd >/dev/null 2>&1 ; then
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

Expand Down

0 comments on commit 0c772d5

Please sign in to comment.